Merge pull request #566 from sohankunkerkar/fix-terminal-size

OCPBUGS-4556: src: Fix terminal resize event processing
This commit is contained in:
Giuseppe Scrivano 2025-06-13 23:03:56 +02:00 committed by GitHub
commit b2f13b0f12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ static gboolean read_from_ctrl_buffer(int fd, gboolean (*line_process_func)(char
char *newline = strchrnul(beg, '\n');
/* Process each message which ends with a line */
while (*newline != '\0') {
if (!line_process_func(ctlbuf))
if (!line_process_func(beg))
return G_SOURCE_CONTINUE;
beg = newline + 1;