From 54925c2087f5f03aa192d1a3bde4faf28e3ffebd Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 13 Jun 2000 07:19:22 +0000 Subject: cpplib.c (handle_directive): Print non-NUL-terminated string with %.*s. * cpplib.c (handle_directive): Print non-NUL-terminated string with %.*s. From-SVN: r34514 --- gcc/cpplib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/cpplib.c') diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 60dfbdd..fd98f41 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. */ -- cgit v1.1