diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-07-23 16:48:45 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-07-23 16:48:45 +0000 |
| commit | d5c773a58b2cdadf7aee2fe16664c168e750b953 (patch) | |
| tree | 6d3333dadabae3fcd6bbf9905b5d8eef0f7c224f | |
| parent | osc: kitty notifications: implement query (diff) | |
notify: bug: always adjust amount of data left in stdout buffer
| -rw-r--r-- | notify.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
