diff options
author | Tom Tromey <tromey@redhat.com> | 2012-05-21 15:27:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-05-21 15:27:24 +0000 |
commit | e9e5e6b3fb7b57350bdf798c8c6a49d7b62b65cf (patch) | |
tree | fab97bba710cba19dc63030634b56cd51e1a831d /gdb | |
parent | 8bbeae90c581eef4bd6c060952c372dc8e7d7a75 (diff) | |
download | gdb-e9e5e6b3fb7b57350bdf798c8c6a49d7b62b65cf.zip gdb-e9e5e6b3fb7b57350bdf798c8c6a49d7b62b65cf.tar.gz gdb-e9e5e6b3fb7b57350bdf798c8c6a49d7b62b65cf.tar.bz2 |
* macroexp.c (macro_stringify): Terminate the string.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/macroexp.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d8442e5..5fd2f3c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-05-21 Tom Tromey <tromey@redhat.com> + + * macroexp.c (macro_stringify): Terminate the string. + 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com> * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path. diff --git a/gdb/macroexp.c b/gdb/macroexp.c index 22b904e..fa34311 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); } |