From d5c773a58b2cdadf7aee2fe16664c168e750b953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 23 Jul 2024 18:48:45 +0200 Subject: [PATCH] notify: bug: always adjust amount of data left in stdout buffer --- notify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notify.c b/notify.c index 9cf44251..2dd303db 100644 --- a/notify.c +++ b/notify.c @@ -66,10 +66,10 @@ consume_stdout(struct notification *notif, bool eof) left -= len + (eol != NULL ? 1 : 0); } - if (left > 0) { + if (left > 0) memmove(notif->stdout_data, data, left); - notif->stdout_sz = left; - } + + notif->stdout_sz = left; } static bool