diff options
author | rubidium <rubidium@openttd.org> | 2013-11-22 21:43:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-22 21:43:47 +0000 |
commit | 6f21593bf66dfe59c737e3da095817b3e80049b8 (patch) | |
tree | 67617755e086a5eb74be43879f39f659dc19fd07 /src/table | |
parent | 1b924f194fe07692e82f6d63696b74968d254cf2 (diff) | |
download | openttd-6f21593bf66dfe59c737e3da095817b3e80049b8.tar.xz |
(svn r26050) -Fix: possible, but currently untriggered, out of bounds access in strgen
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/strgen_tables.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h index 811a8ffda..e6924e29c 100644 --- a/src/table/strgen_tables.h +++ b/src/table/strgen_tables.h @@ -154,6 +154,9 @@ struct PluralForm { const char *names; ///< Plural names }; +/** The maximum number of plurals. */ +static const int MAX_PLURALS = 5; + /** All plural forms used */ static const PluralForm _plural_forms[] = { { 2, "Two forms: special case for 1.", "\"1\" \"other\"" }, |