diff options
Diffstat (limited to 'xkbparse.y')
-rw-r--r-- | xkbparse.y | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -727,8 +727,9 @@ KeySym : IDENT $$= sym; else { char buf[120]; - sprintf(buf,"expected keysym, got %s", - uStringText(scanStr)); + snprintf(buf, sizeof(buf), + "expected keysym, got %s", + uStringText(scanStr)); yyerror(buf); yynerrs++; $$= NoSymbol; |