diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-28 17:37:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-28 17:37:36 +0800 |
commit | c0cf9754b8c5ec7e13f6ee035040d792bc254ee2 (patch) | |
tree | 2de385bb6154f2a3c14ee2a07bc4a11a09a76f04 /camel/camel-stream-buffer.c | |
parent | e79b6c7d42efa895444ee941f02fbae6c511d1ce (diff) | |
download | gsoc2013-evolution-c0cf9754b8c5ec7e13f6ee035040d792bc254ee2.tar.gz gsoc2013-evolution-c0cf9754b8c5ec7e13f6ee035040d792bc254ee2.tar.zst gsoc2013-evolution-c0cf9754b8c5ec7e13f6ee035040d792bc254ee2.zip |
Make sure we've actually read data before checking if p[-] is '\r' or not.
2001-10-28 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'camel/camel-stream-buffer.c')
-rw-r--r-- | camel/camel-stream-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |