diff options
author | smatz <smatz@openttd.org> | 2009-09-22 12:42:56 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-09-22 12:42:56 +0000 |
commit | 665864e5b035189c10de1d545650662f5797f5d5 (patch) | |
tree | 7d522c78409d92c43c76dbf5abf0f89cbfa801a9 /src/strings_type.h | |
parent | 3a7da3092216390f5c466fe4198d263f6c638f2b (diff) | |
download | openttd-665864e5b035189c10de1d545650662f5797f5d5.tar.xz |
(svn r17611) -Fix: buffers used for verifying company and president name length were too short, possibly causing false positives
Diffstat (limited to 'src/strings_type.h')
-rw-r--r-- | src/strings_type.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/strings_type.h b/src/strings_type.h index a77ad663b..91d42d0cb 100644 --- a/src/strings_type.h +++ b/src/strings_type.h @@ -17,6 +17,7 @@ */ typedef uint16 StringID; static const StringID INVALID_STRING_ID = 0xFFFF; ///< Constant representing an invalid string +static const int MAX_CHAR_LENGTH = 4; ///< Max. length of UTF-8 encoded unicode character enum { MAX_LANG = 64, ///< Maximal number of languages supported by the game |