~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r7364 failed to expand a malloc to match the larger data being put
[sgt/puzzles]
/
windows.c
diff --git
a/windows.c
b/windows.c
index
9863de4
..
64f6eae
100644
(file)
--- 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);
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);
sprintf(item, "&Help on %s", thegame.name);
AppendMenu(menu, MF_ENABLED, IDM_GAMEHELP, item);
sfree(item);