diff options
author | Tom Tromey <tromey@redhat.com> | 2012-05-21 15:27:20 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-05-21 15:27:20 +0000 |
commit | 292665f595d509735ce9f82f8256b090917eefdd (patch) | |
tree | 9e6bca8ea4c73f14d3436ccf6898127cc6e3be22 /gdb/macroexp.c | |
parent | 5846d4c42febd6938b6f45e584b31a3435fa4a39 (diff) | |
download | gdb-292665f595d509735ce9f82f8256b090917eefdd.tar.gz |
* macroexp.c (macro_stringify): Terminate the string.
Diffstat (limited to 'gdb/macroexp.c')
-rw-r--r-- | gdb/macroexp.c | 1 |
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); } |