newlib: fvprintf: fix get_arg for !_MB_CAPABLE
Code path for _MB_CAPABLE scans for the '%' character and advances 'fmt' pointer past '%'. Code path for !_MB_CAPABLE leaved fmt pointing to '%', which caused the state machine to go from START to DONE state immediately.
This commit is contained in:
parent
fcd33916ac
commit
1d01586b62
|
@ -2098,6 +2098,8 @@ _DEFUN(get_arg, (data, n, fmt, ap, numargs_p, args, arg_type, last_fmt),
|
||||||
|
|
||||||
if (*fmt == '\0')
|
if (*fmt == '\0')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
fmt++;
|
||||||
# endif /* ! _MB_CAPABLE */
|
# endif /* ! _MB_CAPABLE */
|
||||||
state = START;
|
state = START;
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
|
Loading…
Reference in New Issue