1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

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

svn path=/icecast/trunk/log/; revision=18363
This commit is contained in:
Philipp Schafft 2012-06-07 18:27:58 +00:00
parent 5dede89f82
commit 1b071ba395

View File

@ -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++);
format--;
break;
case 'p':
snprintf(buf, sizeof(buf), "%p", (void*)va_arg(ap, void *));