Skip to content
Snippets Groups Projects
Commit cc46c359 authored by Armin Luntzer's avatar Armin Luntzer
Browse files

vsnprintf(): do not increment buffer pointer when rendering any format

	     specifiers, as the pointer is already incremented in
	     _sprintc()
parent 502bada1
No related branches found
No related tags found
No related merge requests found
......@@ -1297,9 +1297,9 @@ int vsnprintf(char *str, size_t size, const char *format, va_list ap)
/* and render */
if (!str) /* to stdout? */
buf += render_specifier(NULL, NULL, format, &spec, &ap);
render_specifier(NULL, NULL, format, &spec, &ap);
else
buf += render_specifier(&buf, end, format, &spec, &ap);
render_specifier(&buf, end, format, &spec, &ap);
format++; /* the type is always a single char */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment