sync with sylpheed 0.7.4cvs2
[claws.git] / src / pop.c
index fbc976f529b6174bb2ea474117bf4d0ce22f4bfa..052c8a38f7b0a88c4d35ac6fb918dc1b7fe022c3 100644 (file)
--- a/src/pop.c
+++ b/src/pop.c
@@ -399,7 +399,7 @@ gint pop3_top_recv(SockInfo *sock, gpointer data)
        }
        /* we add a Complete-Size Header Item ...
           note: overwrites first line  --> this is dirty */
-       if ( (fp = fopen(filename, "r+")) != NULL ) {
+       if ( (fp = fopen(filename, "rb+")) != NULL ) {
                gchar *buf = g_strdup_printf("%s%i", SIZE_HEADER, 
                                             state->msg[state->cur_msg].size);