fix parse logs again.

This commit is contained in:
Christopher Jeffrey 2014-09-17 11:31:10 -07:00
parent 22dee45e4f
commit 29afe77700

View File

@ -472,7 +472,7 @@ parse_logs(int **out_pipe, int **log_pipe) {
dup2(*out_pipe[1], STDOUT_FILENO);
dup2(*out_pipe[1], STDERR_FILENO);
break;
} else if (cp == sizeof cur) {
} else if (cp == sizeof cur - 1) {
cp = 0;
}
}