From: Bartlomiej Sieka Date: Sun, 27 May 2007 15:04:18 +0000 (+0200) Subject: Fix: Add missing NULL termination in strings expanded by macros parser. X-Git-Tag: v1.3.0-rc1~73^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9160b96f71483a116de81c68985e8ee306d36764;p=u-boot Fix: Add missing NULL termination in strings expanded by macros parser. Signed-off-by: Piotr Kruszynski Acked-by: Bartlomiej Sieka --- diff --git a/common/main.c b/common/main.c index cc4b50f615..8f196a4828 100644 --- a/common/main.c +++ b/common/main.c @@ -1219,6 +1219,8 @@ static void process_macros (const char *input, char *output) if (outputcnt) *output = 0; + else + *(output - 1) = 0; #ifdef DEBUG_PARSER printf ("[PROCESS_MACROS] OUTPUT len %d: \"%s\"\n",