diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/pop.c | 6 | ||||
-rw-r--r-- | libsylph/procmime.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c index db500754..7ee68af2 100644 --- a/libsylph/pop.c +++ b/libsylph/pop.c @@ -817,7 +817,7 @@ static gint pop3_session_recv_data_finished(Session *session, guchar *data, switch (pop3_session->state) { case POP3_GETRANGE_UIDL_RECV: - val = pop3_getrange_uidl_recv(pop3_session, data, len); + val = pop3_getrange_uidl_recv(pop3_session, (gchar *)data, len); if (val == PS_SUCCESS) { if (pop3_session->new_msg_exist) pop3_getsize_list_send(pop3_session); @@ -827,7 +827,7 @@ static gint pop3_session_recv_data_finished(Session *session, guchar *data, return -1; break; case POP3_GETSIZE_LIST_RECV: - val = pop3_getsize_list_recv(pop3_session, data, len); + val = pop3_getsize_list_recv(pop3_session, (gchar *)data, len); if (val == PS_SUCCESS) { if (pop3_lookup_next(pop3_session) == POP3_ERROR) return -1; @@ -835,7 +835,7 @@ static gint pop3_session_recv_data_finished(Session *session, guchar *data, return -1; break; case POP3_RETR_RECV: - if (pop3_retr_recv(pop3_session, data, len) < 0) + if (pop3_retr_recv(pop3_session, (gchar *)data, len) < 0) return -1; if (pop3_session->msg[pop3_session->cur_msg].recv_time diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 6f1a0819..a9b93a99 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -594,7 +594,8 @@ FILE *procmime_decode_content(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) while (fgets(buf, sizeof(buf), infp) != NULL && (!boundary || !IS_BOUNDARY(buf, boundary, boundary_len))) { - len = base64_decoder_decode(decoder, buf, outbuf); + len = base64_decoder_decode(decoder, buf, + (guchar *)outbuf); if (len < 0) { g_warning("Bad BASE64 content\n"); break; |