diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-24 09:37:13 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-24 09:37:13 +0000 |
commit | 4e94805f2abd952eaaed7cf9990ddf13cbc1e66f (patch) | |
tree | b20801de407618068da21c5ddaf6e818466d1707 /libsylph | |
parent | 38f46204d02b2aaf3e61b480c13ab92bcedfde87 (diff) |
fixed procmime_get_part_fp_fp(). updated LegalCopyright. updated version to 3.1.0.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2826 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/procmime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 6815baa5..8fdb5bf9 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -1156,19 +1156,19 @@ FILE *procmime_get_part_fp_fp(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) { gchar buf[BUFFSIZE]; - g_return_val_if_fail(infp != NULL, -1); - g_return_val_if_fail(mimeinfo != NULL, -1); + g_return_val_if_fail(infp != NULL, NULL); + g_return_val_if_fail(mimeinfo != NULL, NULL); if (fseek(infp, mimeinfo->fpos, SEEK_SET) < 0) { FILE_OP_ERROR("procmime_get_part_fp()", "fseek"); - return -1; + return NULL; } while (fgets(buf, sizeof(buf), infp) != NULL) if (buf[0] == '\r' || buf[0] == '\n') break; if ((outfp = procmime_decode_content(outfp, infp, mimeinfo)) == NULL) { - return -1; + return NULL; } return outfp; |