Revert "always null-terminate reqbuf buffer"

This reverts commit 73d8b456eb.
This commit is contained in:
FRIGN 2014-08-25 00:53:10 +02:00
parent 68f51ac37a
commit a86c7f10e3

View file

@ -451,9 +451,8 @@ request(void) {
&& !strstr(reqbuf, "\r\n\r\n") && !strstr(reqbuf, "\n\n"); ) && !strstr(reqbuf, "\r\n\r\n") && !strstr(reqbuf, "\n\n"); )
{ {
offset += r; offset += r;
}
reqbuf[offset] = 0; reqbuf[offset] = 0;
}
if (r == -1) { if (r == -1) {
logerrmsg("error\tread: %s\n", strerror(errno)); logerrmsg("error\tread: %s\n", strerror(errno));
return -1; return -1;