From 1b071ba3958fd548bde1f9dcd2ddbfc8503e9103 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 7 Jun 2012 18:27:58 +0000 Subject: [PATCH] support field width with (most common) %Ns and %NH syntax. svn path=/icecast/trunk/log/; revision=18363 --- src/log/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log/log.c b/src/log/log.c index c37ac786..2a08d4ee 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -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 *));