[hackers] [quark] Revert "always null-terminate reqbuf buffer" || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 25 Aug 2014 00:51:20 +0200

commit a86c7f10e39850642004f0590543ecbf5932210f
Author: FRIGN <dev_AT_frign.de>
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
_AT_@ -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;
Received on Mon Aug 25 2014 - 00:51:20 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 25 2014 - 01:00:12 CEST