From 2775173d4db9e4767fdf9d831aade99541266bd9 Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 20 Jan 2011 20:17:24 +0100 Subject: [PATCH] fix crash with get_tok_str() in skip() crash was triggered by numbers etc. as unexpected token, i.e. everything that requires additional information with the token. --- tccpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccpp.c b/tccpp.c index 27f9870..464d60b 100644 --- a/tccpp.c +++ b/tccpp.c @@ -90,7 +90,7 @@ static void macro_subst( ST_FUNC void skip(int c) { if (tok != c) - error("'%c' expected (got \"%s\")", c, get_tok_str(tok, NULL)); + error("'%c' expected (got \"%s\")", c, get_tok_str(tok, &tokc)); next(); }