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:
Fernando Tarlá Cardoso Lemos
2011-01-02 22:39:49 -02:00
committed by Axel Wagner
parent 34dd4bc89e
commit 29f153c634
3 changed files with 18 additions and 8 deletions

View File

@ -249,7 +249,7 @@ int main(int argc, char **argv) {
FREE(socket_path);
FREE(statusline);
FREE(statusline_buffer);
clean_xcb();
ev_default_destroy();