2002-09-27 Alexander N. Kabaev <ak03@gte.com>
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Sep 2002 00:30:37 +0000 (00:30 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Sep 2002 00:30:37 +0000 (00:30 +0000)
commita54130fbf4b98d104a2e662520592123bfbffa65
treee9272d171d25a90ccbdb45733b655a0414aae29c
parent16b119892362ede5e971bb5fd08565a67fc5ad39
2002-09-27  Alexander N. Kabaev <ak03@gte.com>

PR preprocessor/8055
* cppmacro.c (stringify_arg): Do not overflow the buffer
with the terminating NUL when the argument to be stringified
has no tokens.
* testsuite/gcc.dg/cpp/20020927-1.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57599 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cppmacro.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/20020927-1.c [new file with mode: 0644]