summaryrefslogtreecommitdiff
path: root/keycodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'keycodes.c')
-rw-r--r--keycodes.c2
1 files changed, 1 insertions, 1 deletions
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");
}