* macroexp.c (macro_stringify): Terminate the string.

This commit is contained in:
Tom Tromey 2012-05-21 15:27:24 +00:00
parent 8bbeae90c5
commit e9e5e6b3fb
2 changed files with 5 additions and 0 deletions

View file

@ -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.

View file

@ -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);
}