diff --git a/ChangeLog b/ChangeLog index 06550e0..b19ffc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -347,6 +347,8 @@ was found by the LLVM fuzzer. 103. The POSIX wrapper function regexec() crashed if the option REG_STARTEND was set when the pmatch argument was NULL. It now returns REG_INVARG. +104. Allow for up to 32-bit numbers in the ordin() function in pcre2grep. + Version 10.20 30-June-2015 -------------------------- diff --git a/src/pcre2grep.c b/src/pcre2grep.c index 9216245..dfaea0a 100644 --- a/src/pcre2grep.c +++ b/src/pcre2grep.c @@ -2421,7 +2421,7 @@ return options; static char * ordin(int n) { -static char buffer[8]; +static char buffer[14]; char *p = buffer; sprintf(p, "%d", n); while (*p != 0) p++;