summaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-13 07:19:22 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-13 07:19:22 +0000
commitbc415e2f4f7fc2d1409e9b93cf4f61105e3adc76 (patch)
tree6cb74faf4a4992349f5d239d1c57df1a575c2f3a /gcc/cpplib.c
parent041f2c7206bcfbdf0a446573648ad46427e44a7b (diff)
downloadgcc-bc415e2f4f7fc2d1409e9b93cf4f61105e3adc76.tar.gz
* 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
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 60dfbdd2c27..fd98f419738 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. */