(svn r26050) -Fix: possible, but currently untriggered, out of bounds access in strgen

This commit is contained in:
rubidium
2013-11-22 21:43:47 +00:00
parent aec32ecac1
commit ecfed05729
2 changed files with 11 additions and 7 deletions

View File

@@ -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\"" },