diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-28 13:13:07 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-28 13:13:07 +0000 |
commit | ae3e48afb29cd015e15e8657bb4329b85a9e6537 (patch) | |
tree | 0d5f3f141cdfb09744793a2ce48961ce813fe2ae /app/twm/src/resize.c | |
parent | 02371b9fc05f10c1f5fc6ceb00ef6a51da2afa48 (diff) |
OpenBSD fixes and customizations.
Diffstat (limited to 'app/twm/src/resize.c')
-rw-r--r-- | app/twm/src/resize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/twm/src/resize.c b/app/twm/src/resize.c index 2f114e197..a6950d7f7 100644 --- a/app/twm/src/resize.c +++ b/app/twm/src/resize.c @@ -514,7 +514,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, |