summaryrefslogtreecommitdiff
path: root/gdb/macroexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/macroexp.c')
-rw-r--r--gdb/macroexp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/macroexp.c b/gdb/macroexp.c
index 22b904e6249..fa3431169ea 100644
--- a/gdb/macroexp.c
+++ b/gdb/macroexp.c
@@ -704,6 +704,7 @@ macro_stringify (const char *str)
init_buffer (&buffer, len);
stringify (&buffer, str, len);
+ appendc (&buffer, '\0');
return free_buffer_return_text (&buffer);
}