From: Ken Hornstein Date: Mon, 24 Feb 2014 18:39:19 +0000 (-0500) Subject: Make sure we don't modify the original text when processing the disposition X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2734acd65d1667d99902db2ce35741dd97e69f1c?ds=inline Make sure we don't modify the original text when processing the disposition header. --- diff --git a/uip/mhparse.c b/uip/mhparse.c index 602ca40a..79fbb716 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -944,7 +944,7 @@ get_dispo (char *cp, CT ct) /* Save the whole copy of the Content-Disposition header */ - ct->c_dispo = add(cp, NULL); + cp = ct->c_dispo = add(cp, NULL); while (isspace ((unsigned char) *cp)) /* trim leading spaces */ cp++;