summaryrefslogtreecommitdiff
path: root/xkbparse.y
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-09-05 15:07:13 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-09-05 15:07:13 -0700
commita82e1dcc8ad095581402d05e5d1ae1bbf3646954 (patch)
tree8a0f0422af98d40d9dfa66c044a3566cbdf95b30 /xkbparse.y
parentd2d06305e1834548edd8a647564efa222a511b53 (diff)
sprintf -> snprintf conversions
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;