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 --- xkbpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xkbpath.c') diff --git a/xkbpath.c b/xkbpath.c index dcab317..10a6136 100644 --- a/xkbpath.c +++ b/xkbpath.c @@ -405,7 +405,7 @@ XkbFindFileInPath(char *name, unsigned type, char **pathRtrn) ACTION("Ignored\n"); continue; } - sprintf(buf, "%s/%s/%s", includePath[i], typeDir, name); + snprintf(buf, sizeof(buf), "%s/%s/%s", includePath[i], typeDir, name); file = fopen(buf, "r"); if (file != NULL) break; -- cgit v1.2.3