cvs: php4 /ext/standard formatted_print.c
| From: | Moriyoshi Koizumi | Date: | Fri, 30 May 2003 13:49:34 +0000 |
| Subject: | cvs: php4 /ext/standard formatted_print.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21359@lists.php.net to get a copy of this message | ||
moriyoshi Fri May 30 09:49:34 2003 EDT
Modified files:
/php4/ext/standard formatted_print.c
Log:
Fixed bug #23894 (sprintf() decimal specifiers problem)
Index: php4/ext/standard/formatted_print.c
diff -u php4/ext/standard/formatted_print.c:1.66 php4/ext/standard/formatted_print.c:1.67
--- php4/ext/standard/formatted_print.c:1.66 Tue Mar 18 07:06:03 2003
+++ php4/ext/standard/formatted_print.c Fri May 30 09:49:33 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: formatted_print.c,v 1.66 2003/03/18 12:06:03 ssb Exp $ */
+/* $Id: formatted_print.c,v 1.67 2003/05/30 13:49:33 moriyoshi Exp $ */
#include <math.h> /* modf() */
#include "php.h"
@@ -185,6 +185,7 @@
(*buffer)[(*pos)++] = '-';
add++;
len--;
+ copy_len--;
}
while (npad-- > 0) {
(*buffer)[(*pos)++] = padding;