History

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.

grischka committed 15 years ago

Commit 27751731 parent e3e5d4a1 file · +1 −1Browse files

Unified · Split

tccpp.c+1−1
@@ -90,7 +90,7 @@ static void macro_subst( · 89 unmodified lines
9090 ST_FUNC void skip(int c)
9191 {
9292 if (tok != c)
93− error("'%c' expected (got \"%s\")", c, get_tok_str(tok, NULL));
93+ error("'%c' expected (got \"%s\")", c, get_tok_str(tok, &tokc));
9494 next();
9595 }
9696

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t