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.
master
grischka 2011-01-20 20:17:24 +01:00
parent e3e5d4ad7a
commit 2775173d4d
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}