summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2007-05-27 17:04:18 +0200
committerBartlomiej Sieka <tur@semihalf.com>2007-05-27 17:04:18 +0200
commit9160b96f71483a116de81c68985e8ee306d36764 (patch)
treed9cb27911921d856118a00376820c0d241c838a6
parent630ec84aef7228fc1dbfb38dec78541403a786cd (diff)
Fix: Add missing NULL termination in strings expanded by macros parser.
Signed-off-by: Piotr Kruszynski <ppk@semihalf.com> Acked-by: Bartlomiej Sieka <tur@semihalf.com>
-rw-r--r--common/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index cc4b50f615a..8f196a48282 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",