summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/io_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-engine/io_helper.c b/src/xine-engine/io_helper.c
index 17473a654..d16267794 100644
--- a/src/xine-engine/io_helper.c
+++ b/src/xine-engine/io_helper.c
@@ -357,7 +357,7 @@ int _x_io_tcp_read_line(xine_stream_t *stream, int sock, char *str, int size) {
i++;
}
- if (r != -1)
+ if (r != -1 && c == '\r')
r = xio_rw_abort(stream, sock, XIO_TCP_READ, &c, 1);
str[i] = '\0';