mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r767) Introduce USERSTRING_LEN (128) and try to make sure we don't overflow it anywhere (as long as we keep USERSTRING_LEN above 7 or so).
This commit is contained in:
@@ -431,7 +431,8 @@ extern const TileIndexDiff _tileoffs_by_dir[4];
|
||||
/* misc */
|
||||
VARDEF byte str_buffr[512];
|
||||
VARDEF char _screenshot_name[128];
|
||||
VARDEF char _userstring[128];
|
||||
#define USERSTRING_LEN 128
|
||||
VARDEF char _userstring[USERSTRING_LEN];
|
||||
VARDEF byte _vehicle_design_names;
|
||||
|
||||
VARDEF SignStruct _sign_list[40];
|
||||
|
Reference in New Issue
Block a user