From e9e5e6b3fb7b57350bdf798c8c6a49d7b62b65cf Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 21 May 2012 15:27:24 +0000 Subject: * macroexp.c (macro_stringify): Terminate the string. --- gdb/macroexp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/macroexp.c') 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); } -- cgit v1.2.1