cvs: php4(PHP_4_3) /ext/standard reg.c
| From: | Moriyoshi Koizumi | Date: | Mon, 24 Feb 2003 16:56:25 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard reg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19142@lists.php.net to get a copy of this message | ||
moriyoshi Mon Feb 24 11:56:25 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard reg.c
Log:
MFH
Index: php4/ext/standard/reg.c
diff -u php4/ext/standard/reg.c:1.66.2.5 php4/ext/standard/reg.c:1.66.2.6
--- php4/ext/standard/reg.c:1.66.2.5 Mon Feb 24 11:30:14 2003
+++ php4/ext/standard/reg.c Mon Feb 24 11:56:25 2003
@@ -17,7 +17,7 @@
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
-/* $Id: reg.c,v 1.66.2.5 2003/02/24 16:30:14 moriyoshi Exp $ */
+/* $Id: reg.c,v 1.66.2.6 2003/02/24 16:56:25 moriyoshi Exp $ */
#include <stdio.h>
#include <ctype.h>
@@ -324,7 +324,7 @@
new_l = strlen(buf) + subs[0].rm_so; /* part before the match */
walk = replace;
while (*walk) {
- if ('\\' == *walk && isdigit(walk[1]) && ((unsigned char)walk[1]) -
'0' <= re.re_nsub) {
+ if ('\\' == *walk && isdigit((unsigned char)walk[1]) && ((unsigned
char)walk[1]) - '0' <= re.re_nsub) {
if (subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo
> -1) {
new_l += subs[walk[1] - '0'].rm_eo - subs[walk[1] - '0'].rm_so;
}