From 665864e5b035189c10de1d545650662f5797f5d5 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 22 Sep 2009 12:42:56 +0000 Subject: (svn r17611) -Fix: buffers used for verifying company and president name length were too short, possibly causing false positives --- src/strings_type.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/strings_type.h') 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 -- cgit v1.2.3-54-g00ecf