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;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to