From c1afc5c0b34746f9ef96e4371a2ae503348d1ad9 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 22 Sep 2014 01:27:21 +0000 Subject: 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 --- libsylph/recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsylph') 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; -- cgit v1.2.3