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

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


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2grep.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2015-11-29 17:38:12 UTC (rev 451)
+++ code/trunk/ChangeLog    2015-11-29 17:45:27 UTC (rev 452)
@@ -347,7 +347,9 @@
 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
--------------------------


Modified: code/trunk/src/pcre2grep.c
===================================================================
--- code/trunk/src/pcre2grep.c    2015-11-29 17:38:12 UTC (rev 451)
+++ code/trunk/src/pcre2grep.c    2015-11-29 17:45:27 UTC (rev 452)
@@ -2421,7 +2421,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++;