Commit 1b071ba3 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

support field width with (most common) %Ns and %NH syntax.

svn path=/icecast/trunk/log/; revision=18363
parent 5dede89f
......@@ -467,6 +467,7 @@ static void __vsnprintf(char *str, size_t size, const char *format, va_list ap)
case '9':
block_len = atoi(format);
for (; *format >= '0' && *format <= '9'; format++);
case 'p':
snprintf(buf, sizeof(buf), "%p", (void*)va_arg(ap, void *));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment