summaryrefslogtreecommitdiff
path: root/src/iconmgr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-07-12 22:30:41 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-07-12 22:30:41 -0700
commitc6ade914363426facb01a954650b804657114012 (patch)
treecd06caef24ef2bb064997df6b3dae6bdede71b64 /src/iconmgr.c
parentab689e1a711bbbdfcd6d3a8d2edebbc378ebccb7 (diff)
Replace most sprintf calls with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/iconmgr.c')
-rw-r--r--src/iconmgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iconmgr.c b/src/iconmgr.c
index d2d611e..e0fea0a 100644
--- a/src/iconmgr.c
+++ b/src/iconmgr.c
@@ -93,8 +93,8 @@ void CreateIconManagers()
JunkX, JunkY, p->width, p->height, 1,
Scr->Black, background);
- sprintf(str, "%s Icon Manager", p->name);
- sprintf(str1, "%s Icons", p->name);
+ snprintf(str, sizeof(str), "%s Icon Manager", p->name);
+ snprintf(str1, sizeof(str1), "%s Icons", p->name);
if (p->icon_name)
icon_name = p->icon_name;
else