1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -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 56d4ef3557
commit 4e4bb16f71

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 *));