chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7e7556
)
r7364 failed to expand a malloc to match the larger data being put
author
Simon Tatham
<anakin@pobox.com>
Sun, 11 Mar 2007 10:39:44 +0000
(10:39 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sun, 11 Mar 2007 10:39:44 +0000
(10:39 +0000)
in it.
[originally from svn r7387]
[r7364 ==
39d299f579da3e91308d63acc78c68ab74666989
]
windows.c
patch
|
blob
|
history
diff --git
a/windows.c
b/windows.c
index 9863de4746235eb343f068e693c8f1fdb7b266b4..64f6eae6d8d1b9d49267a4bc22d9b445ba3f1719 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);
- 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);