]> diplodocus.org Git - nmh/commitdiff
Make sure we don't modify the original text when processing the disposition
authorKen Hornstein <kenh@pobox.com>
Mon, 24 Feb 2014 18:39:19 +0000 (13:39 -0500)
committerKen Hornstein <kenh@pobox.com>
Mon, 24 Feb 2014 18:39:19 +0000 (13:39 -0500)
header.

uip/mhparse.c

index 602ca40..79fbb71 100644 (file)
@@ -944,7 +944,7 @@ get_dispo (char *cp, CT ct)
 
     /* Save the whole copy of the Content-Disposition header */
 
 
     /* 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++;
 
     while (isspace ((unsigned char) *cp))      /* trim leading spaces */
        cp++;