summaryrefslogtreecommitdiff
path: root/xkbparse.y
diff options
context:
space:
mode:
Diffstat (limited to 'xkbparse.y')
-rw-r--r--xkbparse.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/xkbparse.y b/xkbparse.y
index d744511..7a73e89 100644
--- a/xkbparse.y
+++ b/xkbparse.y
@@ -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;