aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-buffer.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-11-30 04:04:16 +0800
committerDan Winship <danw@src.gnome.org>2000-11-30 04:04:16 +0800
commitbb04a38e88b9a338ed9f4c7998a93e142f0c1bd6 (patch)
tree0886ebe958fecf8708b551d83419ce903cc8caf0 /camel/camel-stream-buffer.c
parent292dd96540823a9e7969701c95341eada2ce16f6 (diff)
downloadgsoc2013-evolution-bb04a38e88b9a338ed9f4c7998a93e142f0c1bd6.tar
gsoc2013-evolution-bb04a38e88b9a338ed9f4c7998a93e142f0c1bd6.tar.gz
gsoc2013-evolution-bb04a38e88b9a338ed9f4c7998a93e142f0c1bd6.tar.bz2
gsoc2013-evolution-bb04a38e88b9a338ed9f4c7998a93e142f0c1bd6.tar.lz
gsoc2013-evolution-bb04a38e88b9a338ed9f4c7998a93e142f0c1bd6.tar.xz
gsoc2013-evolution-bb04a38e88b9a338ed9f4c7998a93e142f0c1bd6.tar.zst
gsoc2013-evolution-bb04a38e88b9a338ed9f4c7998a93e142f0c1bd6.zip
Fix some off-by-one-ness.
* providers/imap/camel-imap-command.c (imap_read_untagged): Fix some off-by-one-ness. * camel-stream-buffer.c (stream_read): Fix another bug found in previously-unused code here. svn path=/trunk/; revision=6718
Diffstat (limited to 'camel/camel-stream-buffer.c')
-rw-r--r--camel/camel-stream-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c
index 8641206006..dd5f0bc287 100644
--- a/camel/camel-stream-buffer.c
+++ b/camel/camel-stream-buffer.c
@@ -257,7 +257,7 @@ stream_read (CamelStream *stream, char *buffer, size_t n)
}
}
} else {
- memcpy(bptr, sbf->ptr, bytes_left);
+ memcpy(bptr, sbf->ptr, n);
sbf->ptr += n;
bptr += n;
n = 0;