From 96be8458b09f95eb33a149b724e40c1b38c78478 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 11 May 2022 06:59:39 +0000 Subject: [PATCH] Make Haiku event buffer non-static * src/haikuterm.c (haiku_read_socket): Don't make `buf' static in case thread yielding happens inside. --- src/haikuterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haikuterm.c b/src/haikuterm.c index ec6a8f0cea1..58855d07fb8 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -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; -- 2.39.2