X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhparse.c;h=0bb56da163659a2766e8cea5a8ee34ba26d8e3e4;hp=2511f85589362e0cb7ee6500226f3a2f2a5d89d3;hb=4885712264980e6cbc2039f9158027bee9213475;hpb=dee387b53ab0d42922f857b60d6f980c9e79d16f diff --git a/uip/mhparse.c b/uip/mhparse.c index 2511f85..0bb56da 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -3,6 +3,10 @@ * mhparse.c -- routines to parse the contents of MIME messages * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -22,7 +26,6 @@ #endif -extern int errno; extern int debugsw; extern int endian; /* mhmisc.c */ @@ -177,7 +180,7 @@ static struct str2init str2ces[] = { { "quoted-printable", CE_QUOTED, InitQuoted }, { "8bit", CE_8BIT, Init7Bit }, { "7bit", CE_7BIT, Init7Bit }, - { "binary", CE_BINARY, NULL }, + { "binary", CE_BINARY, Init7Bit }, { NULL, CE_EXTENSION, NULL }, /* these two must be last! */ { NULL, CE_UNKNOWN, NULL }, }; @@ -984,6 +987,7 @@ InitMultiPart (CT ct) * Check for "boundary" parameter, which is * required for multipart messages. */ + bp = 0; for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) { if (!strcasecmp (*ap, "boundary")) { bp = *ep;