From b6ae9e904ccd4028156ffa680b07d51336b76877 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 9 Apr 2004 21:46:54 +0000 Subject: accept unix LF as line termination (don't try to read another char) CVS patchset: 6367 CVS date: 2004/04/09 21:46:54 --- src/xine-engine/io_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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'; -- cgit v1.2.3