summaryrefslogtreecommitdiff
path: root/src/resize.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/resize.c
parentab689e1a711bbbdfcd6d3a8d2edebbc378ebccb7 (diff)
Replace most sprintf calls with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/resize.c')
-rw-r--r--src/resize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resize.c b/src/resize.c
index 9a8717f..cd7550f 100644
--- a/src/resize.c
+++ b/src/resize.c
@@ -510,7 +510,7 @@ DisplaySize(TwmWindow *tmp_win, int width, int height)
dheight /= tmp_win->hints.height_inc;
}
- (void) sprintf (str, " %4d x %-4d ", dwidth, dheight);
+ (void) snprintf (str, sizeof(str), " %4d x %-4d ", dwidth, dheight);
XRaiseWindow(dpy, Scr->SizeWindow);
MyFont_ChangeGC(Scr->DefaultC.fore, Scr->DefaultC.back, &Scr->SizeFont);
MyFont_DrawImageString (dpy, Scr->SizeWindow, &Scr->SizeFont,