notify: bug: always adjust amount of data left in stdout buffer

This commit is contained in:
Daniel Eklöf 2024-07-23 18:48:45 +02:00
parent 70b4638a75
commit d5c773a58b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -66,10 +66,10 @@ consume_stdout(struct notification *notif, bool eof)
left -= len + (eol != NULL ? 1 : 0); left -= len + (eol != NULL ? 1 : 0);
} }
if (left > 0) { if (left > 0)
memmove(notif->stdout_data, data, left); memmove(notif->stdout_data, data, left);
notif->stdout_sz = left;
} notif->stdout_sz = left;
} }
static bool static bool