case GDI_INFO_TEXT:
{
- int max_textsize = MAX_INFO_TEXTSIZE;
+ int max_textsize = MAX_INFO_TEXTSIZE - 1;
strncpy(gi->info_text, va_arg(ap, char *), max_textsize);
gi->info_text[max_textsize] = '\0';
static unsigned long pressed_delay = 0;
static int last_button = 0;
static int last_mx = 0, last_my = 0;
- int scrollbar_mouse_pos;
+ int scrollbar_mouse_pos = 0;
struct GadgetInfo *new_gi, *gi;
boolean press_event;
boolean release_event;