X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/7c23099d40443dc535bfb6101577ed01dc3866ff..7156b1ef48de59429a3d81d966ef151edc1c01ad:/src/src/mime.c?ds=sidebyside diff --git a/src/src/mime.c b/src/src/mime.c index 7b3ec2580..76783455a 100644 --- a/src/src/mime.c +++ b/src/src/mime.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/mime.c,v 1.18 2009/11/09 14:31:24 tom Exp $ */ +/* $Cambridge: exim/src/src/mime.c,v 1.19 2009/11/11 10:08:02 nm4 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -106,7 +106,7 @@ static int mime_decode_base64(FILE* in, FILE* out, uschar* boundary) opos = obuf; - while (fgets((char *)ibuf, MIME_MAX_LINE_LENGTH, in) != NULL) + while (Ufgets(ibuf, MIME_MAX_LINE_LENGTH, in) != NULL) { if (boundary != NULL && Ustrncmp(ibuf, "--", 2) == 0 @@ -153,7 +153,7 @@ static int mime_decode_base64(FILE* in, FILE* out, uschar* boundary) return -1; /* error */ size += len; /* copy incomplete last byte to start of obuf, where we continue */ - if (bytestate & 3 != 0) + if ((bytestate & 3) != 0) *obuf = *opos; opos = obuf; }