From: John Hodge Date: Sat, 14 Jul 2012 09:48:38 +0000 (+0800) Subject: Kernel/libc - Fixed vsnprintf to be more standard X-Git-Tag: rel0.15~611^2~40 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ea9d1d431975689850697591ff6f470038764e29;p=tpg%2Facess2.git Kernel/libc - Fixed vsnprintf to be more standard --- diff --git a/KernelLand/Kernel/libc.c b/KernelLand/Kernel/libc.c index bd349735..c6ada1e9 100644 --- a/KernelLand/Kernel/libc.c +++ b/KernelLand/Kernel/libc.c @@ -210,8 +210,8 @@ int vsnprintf(char *__s, size_t __maxlen, const char *__format, va_list args) if(pos < __maxlen) { if(__s) __s[pos] = ch; - pos ++; } + pos ++; } while((c = *__format++) != 0)