Fixed default minium size in vsnprintf being 1 (should be 0)
authorJohn Hodge <[email protected]>
Wed, 2 Mar 2011 05:05:33 +0000 (13:05 +0800)
committerJohn Hodge <[email protected]>
Wed, 2 Mar 2011 05:05:33 +0000 (13:05 +0800)
- Fixes empty strings being inserted as one space

Kernel/lib.c

index 5f277b8..27995b0 100644 (file)
@@ -260,7 +260,7 @@ int vsnprintf(char *__s, size_t __maxlen, const char *__format, va_list args)
                        }
                }
                else
-                       minSize = 1;
+                       minSize = 0;
                
                // - Precision
                precision = -1;

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