From c0cf9754b8c5ec7e13f6ee035040d792bc254ee2 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 28 Oct 2001 09:37:36 +0000 Subject: Make sure we've actually read data before checking if p[-] is '\r' or not. 2001-10-28 Jeffrey Stedfast * camel-stream-buffer.c (camel_stream_buffer_read_line): Make sure we've actually read data before checking if p[-] is '\r' or not. svn path=/trunk/; revision=14288 --- camel/camel-stream-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-stream-buffer.c') diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c index ff7df172ae..3d7ac5e845 100644 --- a/camel/camel-stream-buffer.c +++ b/camel/camel-stream-buffer.c @@ -452,7 +452,7 @@ camel_stream_buffer_read_line (CamelStreamBuffer *sbf) } p--; - if (p[-1] == '\r') + if (p > sbf->linebuf && p[-1] == '\r') p--; p[0] = 0; -- cgit