summaryrefslogtreecommitdiff
path: root/xkbcomp.c
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 /xkbcomp.c
parentd2d06305e1834548edd8a647564efa222a511b53 (diff)
sprintf -> snprintf conversions
Diffstat (limited to 'xkbcomp.c')
-rw-r--r--xkbcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkbcomp.c b/xkbcomp.c
index d79f11a..ae5145d 100644
--- a/xkbcomp.c
+++ b/xkbcomp.c
@@ -782,7 +782,7 @@ parseArgs(int argc, char *argv[])
int len;
char *ch, *name, buf[128];
if (inDpyName[0] == ':')
- sprintf(name = buf, "server%s", inDpyName);
+ snprintf(name = buf, sizeof(buf), "server%s", inDpyName);
else
name = inDpyName;