summaryrefslogtreecommitdiff
path: root/relay.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-01 23:44:41 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-01 23:44:41 +0100
commit038cf91ddc07cdd76e7444efc096094eef66f749 (patch)
tree82d0d5982c4b6b76c95ca1f143d28909c3b9a85a /relay.c
parent387e33a6edc0cbddd3c262a107e3b9026cd55872 (diff)
fix line length calculation
Diffstat (limited to 'relay.c')
-rw-r--r--relay.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/relay.c b/relay.c
index 30be3ec..59cdaa5 100644
--- a/relay.c
+++ b/relay.c
@@ -81,10 +81,8 @@ static void relay_process_headers(struct relay *r)
break;
line_len = newline + 1 - buf;
- if (newline > buf && newline[-1] == '\r') {
+ if (newline > buf && newline[-1] == '\r')
newline--;
- line_len++;
- }
*newline = 0;
if (newline == buf) {