aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--preprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preprocess.c b/preprocess.c
index 36885ab..8607fdf 100644
--- a/preprocess.c
+++ b/preprocess.c
@@ -641,7 +641,7 @@ PpToken* process_include_directive(Preprocessor* pp, PpToken* tok) {
tok2 = read_include_header_name(tok2, include_name);
const char* include_name_buf = resolve_include_name(pp, include_name);
if (include_name_buf == NULL) {
- fatal_error("cannot resolve include file name: %s", include_name_buf);
+ fatal_error("cannot resolve include file name: %.*s", include_name->len, include_name->data);
}
return expand_include_directive(pp, tok, tok2, include_name_buf);
}