From bc415e2f4f7fc2d1409e9b93cf4f61105e3adc76 Mon Sep 17 00:00:00 2001 From: zack Date: Tue, 13 Jun 2000 07:19:22 +0000 Subject: [PATCH] * cpplib.c (handle_directive): Print non-NUL-terminated string with %.*s. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34514 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/cpplib.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 523a0735ebb2..2bddaa38c9cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-06-13 Zack Weinberg + + * cpplib.c (handle_directive): Print non-NUL-terminated string + with %.*s. + 2000-06-12 Michael Meissner * ifcvt.c (dead_or_predicable): Don't do conditional execution diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 60dfbdd2c27e..fd98f419738b 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -244,7 +244,8 @@ _cpp_handle_directive (pfile) assembler pseudo-ops. Don't complain about invalid directives in skipped conditional groups (6.10 p4). */ if (!pfile->skipping && !CPP_OPTION (pfile, lang_asm)) - cpp_error (pfile, "invalid preprocessing directive #%s", ident); + cpp_error (pfile, "invalid preprocessing directive #%.*s", + (int) len, ident); return 0; } /* And anything else means the # wasn't a directive marker. */ -- 2.11.4.GIT