projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0e358f5
)
Fix ICS Text Menu popup
author
H.G. Muller
<h.g.muller@hccnet.nl>
Mon, 16 Apr 2012 18:51:50 +0000 (20:51 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Thu, 19 Apr 2012 09:12:19 +0000 (11:12 +0200)
The space for the option names needed to be allocated.
dialogs.c
patch
|
blob
|
history
diff --git
a/dialogs.c
b/dialogs.c
index
fa55008
..
fdf2d57
100644
(file)
--- a/
dialogs.c
+++ b/
dialogs.c
@@
-892,6
+892,7
@@
IcsTextProc ()
if((p = icsTextMenuString) == NULL) return;
do {
q = r = p; while(*p && *p != ';') p++;
+ if(textOptions[i].name == NULL) textOptions[i].name = (char*) malloc(MSG_SIZ);
for(j=0; j<p-q; j++) textOptions[i].name[j] = *r++;
textOptions[i].name[j++] = 0;
if(!*p) break;