Separate the lines received in a single read.
Fixes the case where multiple lines are read in a single read syscall (it could be better optimized in the future). Also fixes a memory corruption issue when rec == 0.
This commit is contained in:
committed by
Axel Wagner
parent
cd4b77ab72
commit
96e14d8103
@ -14,6 +14,7 @@ typedef int bool;
|
||||
|
||||
struct ev_loop* main_loop;
|
||||
char *statusline;
|
||||
char *statusline_buffer;
|
||||
|
||||
struct rect_t {
|
||||
int x;
|
||||
|
Reference in New Issue
Block a user