diff options
author | pasky <pasky@openttd.org> | 2004-11-22 21:41:25 +0000 |
---|---|---|
committer | pasky <pasky@openttd.org> | 2004-11-22 21:41:25 +0000 |
commit | 3ee0dee12a06c26f0984028a1a56a3f3b240447f (patch) | |
tree | 4db8a64449865edaa93d47db6cc195f0d1893632 /variables.h | |
parent | d4b723a7c9f653f134b33f1d7a130c6b996c1f75 (diff) | |
download | openttd-3ee0dee12a06c26f0984028a1a56a3f3b240447f.tar.xz |
(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).
Diffstat (limited to 'variables.h')
-rw-r--r-- | variables.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/variables.h b/variables.h index c181af4bb..d96a8bd24 100644 --- a/variables.h +++ b/variables.h @@ -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]; |