changeset 1454:fb4a71126df5

Minor safety change in the status window procedure on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 15 Dec 2011 10:38:04 +0000
parents 4b516ef23b62
children a56fa83f2a7c
files win/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Wed Dec 14 08:48:37 2011 +0000
+++ b/win/dw.c	Thu Dec 15 10:38:04 2011 +0000
@@ -3211,7 +3211,7 @@
          PAINTSTRUCT ps;
          RECT rc;
          unsigned long cx, cy;
-         char tempbuf[1024] = "";
+         char tempbuf[1025] = { 0 };
          ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
          HFONT hfont = _acquire_font(hwnd, cinfo ? cinfo->fontname : NULL);
          HFONT oldfont = (HFONT)SendMessage(hwnd, WM_GETFONT, 0, 0);