cvs: php4(PHP_4_3) /main snprintf.c
| From: | Ilia Alshanetsky | Date: | Mon, 05 May 2003 19:54:41 +0000 |
| Subject: | cvs: php4(PHP_4_3) /main snprintf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20713@lists.php.net to get a copy of this message | ||
iliaa Mon May 5 15:54:41 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/main snprintf.c
Log:
MFH
Index: php4/main/snprintf.c
diff -u php4/main/snprintf.c:1.17.4.3 php4/main/snprintf.c:1.17.4.4
--- php4/main/snprintf.c:1.17.4.3 Tue Feb 25 04:45:47 2003
+++ php4/main/snprintf.c Mon May 5 15:54:41 2003
@@ -367,6 +367,10 @@
register int i;
char buf1[NDIG];
+ if (ndigit >= NDIG - 1) {
+ ndigit = NDIG - 2;
+ }
+
p1 = ap_php_ecvt(number, ndigit, &decpt, &sign, buf1);
p2 = buf;
if (sign)