Kernel/libc - Fixed vsnprintf to be more standard
authorJohn Hodge <[email protected]>
Sat, 14 Jul 2012 09:48:38 +0000 (17:48 +0800)
committerJohn Hodge <[email protected]>
Sat, 14 Jul 2012 09:48:38 +0000 (17:48 +0800)
KernelLand/Kernel/libc.c

index bd34973..c6ada1e 100644 (file)
@@ -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)

UCC git Repository :: git.ucc.asn.au