summaryrefslogtreecommitdiff
path: root/src/strings_type.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-22 12:42:56 +0000
committersmatz <smatz@openttd.org>2009-09-22 12:42:56 +0000
commit665864e5b035189c10de1d545650662f5797f5d5 (patch)
tree7d522c78409d92c43c76dbf5abf0f89cbfa801a9 /src/strings_type.h
parent3a7da3092216390f5c466fe4198d263f6c638f2b (diff)
downloadopenttd-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.h1
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