diff options
author | Bartlomiej Sieka <tur@semihalf.com> | 2007-05-27 17:04:18 +0200 |
---|---|---|
committer | Bartlomiej Sieka <tur@semihalf.com> | 2007-05-27 17:04:18 +0200 |
commit | 9160b96f71483a116de81c68985e8ee306d36764 (patch) | |
tree | d9cb27911921d856118a00376820c0d241c838a6 /common/main.c | |
parent | 630ec84aef7228fc1dbfb38dec78541403a786cd (diff) | |
download | u-boot-imx-9160b96f71483a116de81c68985e8ee306d36764.zip u-boot-imx-9160b96f71483a116de81c68985e8ee306d36764.tar.gz u-boot-imx-9160b96f71483a116de81c68985e8ee306d36764.tar.bz2 |
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>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c index cc4b50f..8f196a4 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", |