iliaa Wed Feb 12 15:41:54 2003 EDT Modified files: /php4/main snprintf.c Log: Fixed bug #22187 (spprintf function did not handle floats correctly). Index: php4/main/snprintf.c diff -u php4/main/snprintf.c:1.17 php4/main/snprintf.c:1.18 --- php4/main/snprintf.c:1.17 Tue Aug 20 21:11:50 2002 +++ php4/main/snprintf.c Wed Feb 12 15:41:53 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