cpplib.c (do_pragma_implementation): Fix off-by-one error truncating a string.
authorZack Weinberg <zack@wolery.cumb.org>
Mon, 13 Mar 2000 17:25:36 +0000 (17:25 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 13 Mar 2000 17:25:36 +0000 (17:25 +0000)
commit0e091b520e74abfcc98cd8b55525fce0ee50b6b6
treebecf3668ee98ea8419e3774e66c8b82085465239
parentbc808e0bc5cff1895e4d6c29a8ee7775cef10594
cpplib.c (do_pragma_implementation): Fix off-by-one error truncating a string.

* cpplib.c (do_pragma_implementation): Fix off-by-one error
truncating a string.  Don't assume tokens are nul terminated.
Problem noted by Andreas Jaeger <aj@suse.de>

From-SVN: r32507
gcc/ChangeLog
gcc/cpplib.c
gcc/testsuite/gcc.dg/pr-impl.c [new file with mode: 0644]