From a82e1dcc8ad095581402d05e5d1ae1bbf3646954 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 5 Sep 2008 15:07:13 -0700 Subject: sprintf -> snprintf conversions --- xkbcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xkbcomp.c') 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; -- cgit v1.2.3