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
34dd4bc89e
commit
29f153c634
@ -249,7 +249,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
FREE(socket_path);
|
||||
|
||||
FREE(statusline);
|
||||
FREE(statusline_buffer);
|
||||
|
||||
clean_xcb();
|
||||
ev_default_destroy();
|
||||
|
Reference in New Issue
Block a user