1998-06-05 Colin Rafferty * lwlib/xlwmenu.c: Made newchars be as large as it needs to be. --- lwlib/xlwmenu.c~ Tue Mar 31 15:11:14 1998 +++ lwlib/xlwmenu.c Fri Jun 5 09:42:17 1998 @@ -417,7 +417,8 @@ int drop; # endif #endif - char newchars[64]; + char* newchars; + int charslength; char *chars; int i, j; @@ -429,8 +430,10 @@ #else chars = string; #endif + charslength = strlen (chars); + newchars = (char*) alloca (charslength); - for (i = j = 0; chars[i] && (j < (int) sizeof (newchars)); i++) + for (i = j = 0; chars[i] && (j < charslength); i++) if (chars[i]=='%'&&chars[i+1]=='_') i++; else