Make Haiku event buffer non-static

* src/haikuterm.c (haiku_read_socket): Don't make `buf' static
in case thread yielding happens inside.
This commit is contained in:
Po Lu 2022-05-11 06:59:39 +00:00
parent 70c4b5bdc6
commit 96be8458b0

View file

@ -2998,7 +2998,7 @@ static int
haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
{
int message_count;
static void *buf;
void *buf;
ssize_t b_size;
int button_or_motion_p, do_help;
enum haiku_event_type type;