Jeff Miller writes:
I believe I have found the culprit. If you look at xlwmenu.c,
function
"string_width_u", you'll see that it has a 64 long char array called
newchars. I don't follow all that's going on in here, but this function
appear to clean up the text string and null-terminate it.
The 64 char arry obviously limits the length of the popup menu, so
I'm
jacking it up to 256.
It is always a bad idea to put limits on strings.
Seocond, there is an off-by-one count on the null termination of
newchars. So I fixed that too.
Here is a patch that also works, but sets no limit on the length of
the string.
[ Note that I used text/plain instead of application/octet-stream]