diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-05-30 13:49:33 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-05-30 13:49:33 +0000 |
commit | a51ab0fed0a95629a02332abeb5c4846aaaeb86d (patch) | |
tree | 062040c76598c744efbf1df9e56ffca685ad749d | |
parent | 3c0071a2113717fb780b840aa67e95f869944b78 (diff) | |
download | php-git-a51ab0fed0a95629a02332abeb5c4846aaaeb86d.tar.gz |
Fixed bug #23894 (sprintf() decimal specifiers problem)
-rw-r--r-- | ext/standard/formatted_print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 111d8e89fd..f5ddeb63dc 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -185,6 +185,7 @@ php_sprintf_appendstring(char **buffer, int *pos, int *size, char *add, (*buffer)[(*pos)++] = '-'; add++; len--; + copy_len--; } while (npad-- > 0) { (*buffer)[(*pos)++] = padding; |