/*
- * $Id: mime.cc,v 1.21 1996/11/15 00:36:21 wessels Exp $
+ * $Id: mime.cc,v 1.22 1996/11/18 18:21:33 wessels Exp $
*
* DEBUG: section 25 MIME Parsing
* AUTHOR: Harvest Derived
continue;
if (!isspace(p[namelen]) && p[namelen] != ':')
continue;
- xstrncpy(header, p, GET_HDR_SZ);
+ xstrncpy(header, p, strcspn(p, "\n\r")+1);
debug(25, 5, "mime_get_header: checking '%s'\n", header);
- header[strcspn(header, "\n\r")] = '\0';
q = header;
q += namelen;
if (*q == ':')