[Pcre-svn] [1615] code/trunk: Allow for up to 32-bit numbers…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1615] code/trunk: Allow for up to 32-bit numbers in the ordin() function in pcregrep.
Revision: 1615
          http://vcs.pcre.org/viewvc?view=rev&revision=1615
Author:   ph10
Date:     2015-11-29 17:46:23 +0000 (Sun, 29 Nov 2015)
Log Message:
-----------
Allow for up to 32-bit numbers in the ordin() function in pcregrep.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcregrep.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2015-11-29 17:38:25 UTC (rev 1614)
+++ code/trunk/ChangeLog    2015-11-29 17:46:23 UTC (rev 1615)
@@ -21,7 +21,9 @@
 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
-----------------------------


Modified: code/trunk/pcregrep.c
===================================================================
--- code/trunk/pcregrep.c    2015-11-29 17:38:25 UTC (rev 1614)
+++ code/trunk/pcregrep.c    2015-11-29 17:46:23 UTC (rev 1615)
@@ -2437,7 +2437,7 @@
 static char *
 ordin(int n)
 {
-static char buffer[8];
+static char buffer[14];
 char *p = buffer;
 sprintf(p, "%d", n);
 while (*p != 0) p++;