iliaa Wed Feb 12 15:42:21 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 php4/main/snprintf.c:1.17.4.1
--- php4/main/snprintf.c:1.17 Tue Aug 20 21:11:50 2002
+++ php4/main/snprintf.c Wed Feb 12 15:42:21 2003
@@ -298,7 +298,7 @@
while (p1 < &buf[NDIG])
*p++ = *p1++;
} else if (arg > 0) {
- while ((fj = arg * 10) < 1) {
+ while ((fj = arg * 10) < 1 && (r2 * -1) < ndigits) {
arg = fj;
r2--;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php