mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- MFH %v for s[np]printf
This commit is contained in:
parent
18eb480dd2
commit
c018b83003
2 changed files with 2 additions and 0 deletions
|
@ -897,6 +897,7 @@ static int format_converter(register buffy * odp, const char *fmt,
|
||||||
|
|
||||||
|
|
||||||
case 's':
|
case 's':
|
||||||
|
case 'v':
|
||||||
s = va_arg(ap, char *);
|
s = va_arg(ap, char *);
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
s_len = strlen(s);
|
s_len = strlen(s);
|
||||||
|
|
|
@ -513,6 +513,7 @@ static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap)
|
||||||
|
|
||||||
|
|
||||||
case 's':
|
case 's':
|
||||||
|
case 'v':
|
||||||
s = va_arg(ap, char *);
|
s = va_arg(ap, char *);
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
s_len = strlen(s);
|
s_len = strlen(s);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue