summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-11-29 17:46:23 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-11-29 17:46:23 +0000
commite347b40d5bb12f7ef1e632aa649571a107be7d8a (patch)
tree6c56e99cf873ad494ccb41ccb509b23d5eedd68d
parent108377b836fc29a84f5286287629d96549b1c777 (diff)
downloadpcre-e347b40d5bb12f7ef1e632aa649571a107be7d8a.tar.gz
Allow for up to 32-bit numbers in the ordin() function in pcregrep.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1615 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r--ChangeLog2
-rw-r--r--pcregrep.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cfa7066..c24ea84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,8 @@ Version 8.39 xx-xxxxxx-201x
4. The POSIX wrapper function regexec() crashed if the option REG_STARTEND
was set when the pmatch argument was NULL. It now returns REG_INVARG.
+5. Allow for up to 32-bit numbers in the ordin() function in pcregrep.
+
Version 8.38 23-November-2015
-----------------------------
diff --git a/pcregrep.c b/pcregrep.c
index 64986b0..cd53c64 100644
--- a/pcregrep.c
+++ b/pcregrep.c
@@ -2437,7 +2437,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++;