diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-07-12 22:30:41 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-07-12 22:30:41 -0700 |
commit | c6ade914363426facb01a954650b804657114012 (patch) | |
tree | cd06caef24ef2bb064997df6b3dae6bdede71b64 /src/iconmgr.c | |
parent | ab689e1a711bbbdfcd6d3a8d2edebbc378ebccb7 (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.c | 4 |
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 |