commit a86c7f10e39850642004f0590543ecbf5932210f
Author: FRIGN <[email protected]>
Date:   Mon Aug 25 00:53:10 2014 +0200

    Revert "always null-terminate reqbuf buffer"
    
    This reverts commit 73d8b456eba75fa7c37b16b673585d992afc6df2.

diff --git a/quark.c b/quark.c
index bf5fd10..ebfae74 100644
--- a/quark.c
+++ b/quark.c
@@ -451,9 +451,8 @@ request(void) {
                && !strstr(reqbuf, "

") && !strstr(reqbuf, "

"); )
        {
                offset += r;
+               reqbuf[offset] = 0;
        }
-       reqbuf[offset] = 0;
-
        if (r == -1) {
                logerrmsg("error        read: %s
", strerror(errno));
                return -1;


Reply via email to