summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2016-07-31 15:46:51 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2016-07-31 16:52:06 +0100
commit3581f3213f74d47833cc710dfc678f1d79debaa7 (patch)
treeddae9c52c6223e779d64ffe60f220dedf30e6504 /src
parent0d9fa8c0a3e0e3dd140880861a60c3def18f176b (diff)
Fix $body_linecount for empty lines
Diffstat (limited to 'src')
-rw-r--r--src/src/receive.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/receive.c b/src/src/receive.c
index 52e041c90..a59fbc991 100644
--- a/src/src/receive.c
+++ b/src/src/receive.c
@@ -682,7 +682,8 @@ while ((ch = (receive_getc)()) != EOF)
case 1: /* After written "\n" */
if (ch == '.') { ch_state = 3; continue; }
if (ch == '\r') { ch_state = 2; continue; }
- if (ch != '\n') ch_state = 0; else linelength = -1;
+ if (ch == '\n') { body_linecount++; linelength = -1; }
+ else ch_state = 0;
break;
case 2: