summaryrefslogtreecommitdiff
path: root/compat.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 /compat.c
parentd2d06305e1834548edd8a647564efa222a511b53 (diff)
downloadxorg-app-xkbcomp-a82e1dcc8ad095581402d05e5d1ae1bbf3646954.tar.gz
sprintf -> snprintf conversions
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat.c b/compat.c
index b20610b..f2f3f90 100644
--- a/compat.c
+++ b/compat.c
@@ -85,11 +85,12 @@ siText(SymInterpInfo * si, CompatInfo * info)
if (si == &info->dflt)
{
- sprintf(buf, "default");
+ snprintf(buf, sizeof(buf), "default");
}
else
{
- sprintf(buf, "%s+%s(%s)", XkbKeysymText(si->interp.sym, XkbMessage),
+ snprintf(buf, sizeof(buf), "%s+%s(%s)",
+ XkbKeysymText(si->interp.sym, XkbMessage),
XkbSIMatchText(si->interp.match, XkbMessage),
XkbModMaskText(si->interp.mods, XkbMessage));
}