From 0a23f8e8ef4eb896f74cf23c455315f878e652a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 8 Feb 2024 02:16:28 -0500 Subject: [PATCH] Bow to GCC harder. --- src/conio/x_events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conio/x_events.c b/src/conio/x_events.c index ecc1b836f8..a6ee174259 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -1913,7 +1913,8 @@ x11_event(XEvent *ev) if (ch) { // Bow to GCC if (ch == 0xe0) // Double-up 0xe0 - write(key_pipe[1], &ch, 1); + if (write(key_pipe[1], &ch, 1) == -1) + return; if (write(key_pipe[1], &ch, 1) == EXIT_SUCCESS) return; else -- GitLab