Commit 9160b96f71483a116de81c68985e8ee306d36764

Authored by Bartlomiej Sieka
1 parent 630ec84aef

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -1219,6 +1219,8 @@
1219 1219  
1220 1220 if (outputcnt)
1221 1221 *output = 0;
  1222 + else
  1223 + *(output - 1) = 0;
1222 1224  
1223 1225 #ifdef DEBUG_PARSER
1224 1226 printf ("[PROCESS_MACROS] OUTPUT len %d: \"%s\"\n",