From 89b38b84fc2e6a4f96e9f66707fc64388992fc3e Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 2 Mar 2011 13:05:33 +0800 Subject: [PATCH] Fixed default minium size in vsnprintf being 1 (should be 0) - Fixes empty strings being inserted as one space --- Kernel/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1