diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-07-18 03:14:51 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-07-18 03:14:51 +0800 |
commit | 7b6185cbe135d388e8bc872ab2a40fc67e1122f6 (patch) | |
tree | 94563bc2a47f95c2c3f90552dfcd7091f2b46044 /camel | |
parent | 2b960e3b7555c6b7279a3f7629ed8730b614480e (diff) | |
download | gsoc2013-evolution-7b6185cbe135d388e8bc872ab2a40fc67e1122f6.tar gsoc2013-evolution-7b6185cbe135d388e8bc872ab2a40fc67e1122f6.tar.gz gsoc2013-evolution-7b6185cbe135d388e8bc872ab2a40fc67e1122f6.tar.bz2 gsoc2013-evolution-7b6185cbe135d388e8bc872ab2a40fc67e1122f6.tar.lz gsoc2013-evolution-7b6185cbe135d388e8bc872ab2a40fc67e1122f6.tar.xz gsoc2013-evolution-7b6185cbe135d388e8bc872ab2a40fc67e1122f6.tar.zst gsoc2013-evolution-7b6185cbe135d388e8bc872ab2a40fc67e1122f6.zip |
Increment the seekable stream position by the number of bytes read. Oops.
2003-07-17 Jeffrey Stedfast <fejj@ximian.com>
* camel-stream-fs.c (stream_read): Increment the seekable stream
position by the number of bytes read. Oops.
svn path=/trunk/; revision=21861
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-stream-fs.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index a51b2ffeee..cc0e60e9ed 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2003-07-17 Jeffrey Stedfast <fejj@ximian.com> + + * camel-stream-fs.c (stream_read): Increment the seekable stream + position by the number of bytes read. Oops. + 2003-07-17 Timo Sirainen <tss@iki.fi> ** See bug #42573 diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c index 9f67cd9e40..b86f146e59 100644 --- a/camel/camel-stream-fs.c +++ b/camel/camel-stream-fs.c @@ -220,7 +220,9 @@ stream_read (CamelStream *stream, char *buffer, size_t n) if (seekable->bound_end != CAMEL_STREAM_UNBOUND) n = MIN (seekable->bound_end - seekable->position, n); - if ((nread = camel_read (stream_fs->fd, buffer, n)) == 0) + if ((nread = camel_read (stream_fs->fd, buffer, n)) > 0) + seekable->position += nread; + else if (nread == 0) stream->eos = TRUE; return nread; |