From: John Hodge Date: Wed, 2 Mar 2011 05:05:33 +0000 (+0800) Subject: Fixed default minium size in vsnprintf being 1 (should be 0) X-Git-Tag: rel0.10~167 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=89b38b84fc2e6a4f96e9f66707fc64388992fc3e;p=tpg%2Facess2.git Fixed default minium size in vsnprintf being 1 (should be 0) - Fixes empty strings being inserted as one space --- diff --git a/Kernel/lib.c b/Kernel/lib.c index 5f277b8b..27995b07 100644 --- a/Kernel/lib.c +++ b/Kernel/lib.c @@ -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;