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 cd4b77ab72
commit 96e14d8103
3 changed files with 18 additions and 8 deletions

View File

@ -14,6 +14,7 @@ typedef int bool;
struct ev_loop* main_loop;
char *statusline;
char *statusline_buffer;
struct rect_t {
int x;