aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-buffer.c
diff options
context:
space:
mode:
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;