From 67b37596c2d01b993d540aceaffa936606755f5b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 11 Mar 2007 10:39:44 +0000 Subject: [PATCH] r7364 failed to expand a malloc to match the larger data being put in it. [originally from svn r7387] [r7364 == 39d299f579da3e91308d63acc78c68ab74666989] --- windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows.c b/windows.c index 9863de4..64f6eae 100644 --- a/windows.c +++ b/windows.c @@ -1659,7 +1659,7 @@ static frontend *new_window(HINSTANCE inst, char *game_id, char **error) if (help_topic) { char *item; assert(thegame.name); - item = snewn(9+strlen(thegame.name), char); /*ick*/ + item = snewn(10+strlen(thegame.name), char); /*ick*/ sprintf(item, "&Help on %s", thegame.name); AppendMenu(menu, MF_ENABLED, IDM_GAMEHELP, item); sfree(item);