diff options
author | Marcus Boerger <helly@php.net> | 2006-01-24 20:59:46 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2006-01-24 20:59:46 +0000 |
commit | 9cb7d29f846dbfc09b038c6c9cd743bffc16451e (patch) | |
tree | 0fb8df5167aa05c41e669049a089f93b87c03f3e /main/spprintf.c | |
parent | 5f25d80d106004692dacb9c01cdc49c7c883a13a (diff) | |
download | php-git-9cb7d29f846dbfc09b038c6c9cd743bffc16451e.tar.gz |
- MFH Bug #35978 %n format string specifier wrongly implemented
Diffstat (limited to 'main/spprintf.c')
-rw-r--r-- | main/spprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/spprintf.c b/main/spprintf.c index 93be4d1ae4..67375aee96 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -631,7 +631,7 @@ static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) case 'n': *(va_arg(ap, int *)) = xbuf->len; - break; + goto skip_output; /* * Always extract the argument as a "char *" pointer. We @@ -709,6 +709,7 @@ fmt_error: if (adjust_width && adjust == LEFT && min_width > s_len) PAD(xbuf, min_width - s_len, pad_char); } +skip_output: fmt++; } return; |