diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-09-05 15:07:13 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-09-05 15:07:13 -0700 |
commit | a82e1dcc8ad095581402d05e5d1ae1bbf3646954 (patch) | |
tree | 8a0f0422af98d40d9dfa66c044a3566cbdf95b30 /keycodes.c | |
parent | d2d06305e1834548edd8a647564efa222a511b53 (diff) |
sprintf -> snprintf conversions
Diffstat (limited to 'keycodes.c')
-rw-r--r-- | keycodes.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |