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 --- keycodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keycodes.c') diff --git a/keycodes.c b/keycodes.c index 79da721..a2f4396 100644 --- a/keycodes.c +++ b/keycodes.c @@ -724,7 +724,7 @@ HandleIndicatorNameDef(IndicatorNameDef * def, if (!ExprResolveString(def->name, &tmp, NULL, NULL)) { char buf[20]; - sprintf(buf, "%d", def->ndx); + snprintf(buf, sizeof(buf), "%d", def->ndx); info->errorCount++; return ReportBadType("indicator", "name", buf, "string"); } -- cgit v1.2.3