aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-09-22 01:27:21 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-09-22 01:27:21 +0000
commitc1afc5c0b34746f9ef96e4371a2ae503348d1ad9 (patch)
tree2b14dd084b8bb9b59f0b81ce37a637e4889f569a /libsylph
parent160166c96b5484ae2afe4fdd5c349349dae671e7 (diff)
fixed a bug that wrote the first part of data if an IMAP4 data didn't end with CR+LF.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3425 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsylph/recv.c b/libsylph/recv.c
index c25108f3..1abcf7c1 100644
--- a/libsylph/recv.c
+++ b/libsylph/recv.c
@@ -225,7 +225,7 @@ gint recv_bytes_write(SockInfo *sock, glong size, FILE *fp)
}
if (prev - buf < size && fp &&
- fwrite(buf, sizeof(gchar), size - (prev - buf), fp) == EOF) {
+ fwrite(prev, sizeof(gchar), size - (prev - buf), fp) == EOF) {
perror("fwrite");
g_warning(_("Can't write to file.\n"));
fp = NULL;