Remove code that replaces the first popt argument with a string
containing a part of the menu height (for some debugging purposes?).
This fixes a crash with libpopt-1.19.
static int menuSize(int * height, int * width, enum mode mode,
poptContext options) {
const char ** argv = poptGetArgs(options);
- const char ** items = argv;
int h = 0;
int tagWidth = 0;
int descriptionWidth = 0;
int overhead = 10;
- static char buf[20];
if ( argv == 0 || *argv == 0 )
return 0;
h = min(h, SLtt_Screen_Rows - *height - 4);
*height = *height + h + 1;
- sprintf(buf, "%d", h);
- *items = buf;
return 0;
}