From cd0943e2778d8cd690dda0635a3d4ef91546350a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 14 Jul 2009 15:17:11 -0400 Subject: [PATCH] preproc: don't pass an enum to %s Need to use pp_directives[directive], not the plain directive, which is an enum. Signed-off-by: H. Peter Anvin --- preproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preproc.c b/preproc.c index 2c6d5d31..d92b4bf8 100644 --- a/preproc.c +++ b/preproc.c @@ -2023,7 +2023,8 @@ static size_t nasm_unquote_cstr(char *qstr, enum preproc_token directive) size_t clen = strlen(qstr); if (len != clen) - error(ERR_NONFATAL, "NUL character in `%s' directive", directive); + error(ERR_NONFATAL, "NUL character in `%s' directive", + pp_directives[directive]); return clen; } -- 2.11.4.GIT