From 038cf91ddc07cdd76e7444efc096094eef66f749 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 1 Jan 2013 23:44:41 +0100 Subject: fix line length calculation --- relay.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'relay.c') 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) { -- cgit v1.2.3