+2001-09-22 Bruno Haible <haible@clisp.cons.org>
+
+ * plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that don't
+ start with a digit; nplurals must be positive.
+
2001-10-20 Bruno Haible <haible@clisp.cons.org>
Assume strchr() exists. (Without it, explodename.c wouldn't link
goto no_plural;
else
{
- /* First get the number. */
char *endp;
unsigned long int n;
struct parse_args args;
+ /* First get the number. */
nplurals += 9;
while (*nplurals != '\0' && isspace ((unsigned char) *nplurals))
++nplurals;
+ if (!(*nplurals >= '0' && *nplurals <= '9'))
+ goto no_plural;
#if defined HAVE_STRTOUL || defined _LIBC
n = strtoul (nplurals, &endp, 10);
#else