ref: 67b37596c2d01b993d540aceaffa936606755f5b
parent: f7e755628b681804e4dd82cd8bcb501a5a6dca57
author: Simon Tatham <anakin@pobox.com>
date: Sun Mar 11 06:39:44 EDT 2007
r7364 failed to expand a malloc to match the larger data being put in it. [originally from svn r7387] [r7364 == 39d299f579da3e91308d63acc78c68ab74666989]
--- a/windows.c
+++ b/windows.c
@@ -1659,7 +1659,7 @@
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);