mirror of https://github.com/containers/conmon.git
Merge pull request #566 from sohankunkerkar/fix-terminal-size
OCPBUGS-4556: src: Fix terminal resize event processing
This commit is contained in:
commit
b2f13b0f12
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue