diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-01 23:44:41 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-01 23:44:41 +0100 |
commit | 038cf91ddc07cdd76e7444efc096094eef66f749 (patch) | |
tree | 82d0d5982c4b6b76c95ca1f143d28909c3b9a85a /relay.c | |
parent | 387e33a6edc0cbddd3c262a107e3b9026cd55872 (diff) |
fix line length calculation
Diffstat (limited to 'relay.c')
-rw-r--r-- | relay.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) { |