From: Ken Hornstein Date: Wed, 5 Mar 2014 00:53:23 +0000 (-0500) Subject: A few minor fixups; the parser now passes the test suite! X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/814d3143554344afb5b1f745f24a0915ae797fb8?ds=inline A few minor fixups; the parser now passes the test suite! --- diff --git a/uip/mhparse.c b/uip/mhparse.c index 7f2099fe..88a2671a 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -3266,7 +3266,7 @@ parse_header_attrs (const char *filename, const char *fieldname, } *pp, *phead = NULL; while (*cp == ';') { - char *dp, *vp, *up, c, *nameptr, *valptr, *charset = NULL, *lang = NULL; + char *dp, *vp, *up, *nameptr, *valptr, *charset = NULL, *lang = NULL; int encoded = 0, partial = 0, index = 0, len = 0; cp++; @@ -3501,7 +3501,7 @@ bad_quote: } cp++; } else { - strncpy(valptr, dp, len); + strncpy(valptr, cp = dp, len); cp += len; }