]> git.eshelyaron.com Git - emacs.git/commitdiff
Make Haiku event buffer non-static
authorPo Lu <luangruo@yahoo.com>
Wed, 11 May 2022 06:59:39 +0000 (06:59 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 11 May 2022 06:59:39 +0000 (06:59 +0000)
* src/haikuterm.c (haiku_read_socket): Don't make `buf' static
in case thread yielding happens inside.

src/haikuterm.c

index ec6a8f0cea17a7874ac1c60662e0a3dbcd5ad346..58855d07fb84d195e3774481c16582a0f0846f3b 100644 (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;