mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Bugfix #28012 spprintf() output inconsistent for %p
This commit is contained in:
parent
a455d7846d
commit
c007130382
1 changed files with 1 additions and 1 deletions
|
@ -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 *));
|
ui_num = (u_wide_int)((size_t) va_arg(ap, char *));
|
||||||
s = ap_php_conv_p2(ui_num, 4, 'x',
|
s = ap_php_conv_p2(ui_num, 4, 'x',
|
||||||
&num_buf[NUM_BUF_SIZE], &s_len);
|
&num_buf[NUM_BUF_SIZE], &s_len);
|
||||||
if (i_num != 0) {
|
if (ui_num != 0) {
|
||||||
*--s = 'x';
|
*--s = 'x';
|
||||||
*--s = '0';
|
*--s = '0';
|
||||||
s_len += 2;
|
s_len += 2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue