aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/transact.c b/transact.c
index 857d7a35..85d8b009 100644
--- a/transact.c
+++ b/transact.c
@@ -529,8 +529,8 @@ int readheaders(int sock,
tcp = line + linelen - 1;
*tcp++ = '\r';
*tcp++ = '\n';
- *tcp++ = '\0';
- n++;
+ *tcp = '\0';
+ /* n++; - not used later on */
linelen++;
}
else
@@ -1332,7 +1332,7 @@ process_headers:
cp = buf;
*cp++ = '\r';
*cp++ = '\n';
- *cp++ = '\0';
+ *cp = '\0';
n = stuffline(ctl, buf);
if ((size_t)n == strlen(buf))