From: H.G. Muller Date: Mon, 16 Apr 2012 18:51:50 +0000 (+0200) Subject: Fix ICS Text Menu popup X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=85e936c0a713147fe4d1fb20c04a2be5a5c210f8;p=xboard.git Fix ICS Text Menu popup The space for the option names needed to be allocated. --- diff --git a/dialogs.c b/dialogs.c index fa55008..fdf2d57 100644 --- 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