#R733 (from <Someone>)

- fix a buffer overflow in the win32 graphical interface
This commit is contained in:
nethack.allison
2002-04-01 21:23:38 +00:00
parent add3dcf7ee
commit df39d363b2

View File

@@ -7,11 +7,11 @@
#include "mhfont.h"
#define NHSW_LINES 2
#define MAXWINDOWTEXT 80
#define MAXWINDOWTEXT BUFSZ
typedef struct mswin_nethack_status_window {
int index;
char window_text[NHSW_LINES][MAXWINDOWTEXT];
char window_text[NHSW_LINES][MAXWINDOWTEXT+1];
} NHStatusWindow, *PNHStatusWindow;
static TCHAR szStatusWindowClass[] = TEXT("MSNHStatusWndClass");