Merge with /home/tur/git/u-boot#motionpro
[platform/kernel/u-boot.git] / common / main.c
index d8c0054..09ee64b 100644 (file)
@@ -1191,6 +1191,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",