From 72f9abb1c00e1600480c6d02f631f2923119cc0c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 12 Nov 2026 00:23:49 -0600 Subject: [PATCH] Copy NUL terminator when selecting last active console, and some in-passing cleanup. Reported by Marian Cingel. --- toys/other/oneit.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/toys/other/oneit.c b/toys/other/oneit.c index 45eb1fb5..62922b1a 100644 --- a/toys/other/oneit.c +++ b/toys/other/oneit.c @@ -65,15 +65,14 @@ static void oneit_signaled(int signal) void oneit_main(void) { int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; - char *ss = toybuf+5; // Setup signal handlers for signals of interest for (i = 0; i