Revert "always null-terminate reqbuf buffer"
This reverts commit 73d8b456eb
.
This commit is contained in:
parent
68f51ac37a
commit
a86c7f10e3
1 changed files with 1 additions and 2 deletions
3
quark.c
3
quark.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue