diff options
author | Marcus Boerger <helly@php.net> | 2004-04-15 23:04:49 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-04-15 23:04:49 +0000 |
commit | c007130382bc848d09be17ea28e9d090c1e64276 (patch) | |
tree | 49ea365c1b8bd898cb3c2dcb3df89426bc03cb6f /main/spprintf.c | |
parent | a455d7846d5f3b2afd45b415060655d5e236ccc9 (diff) | |
download | php-git-c007130382bc848d09be17ea28e9d090c1e64276.tar.gz |
Bugfix #28012 spprintf() output inconsistent for %p
Diffstat (limited to 'main/spprintf.c')
-rw-r--r-- | main/spprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/spprintf.c b/main/spprintf.c index 31211f3bb0..cd286b6ad3 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -646,7 +646,7 @@ static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) ui_num = (u_wide_int)((size_t) va_arg(ap, char *)); s = ap_php_conv_p2(ui_num, 4, 'x', &num_buf[NUM_BUF_SIZE], &s_len); - if (i_num != 0) { + if (ui_num != 0) { *--s = 'x'; *--s = '0'; s_len += 2; |