]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
Alter HasSuffixC()'s char * to be const.
[nmh] / uip / mhfixmsg.c
index 7fd7caa94a2ab6f4d1520ab14b38eb4b9508d47e..ee25624c8ee13ea51edf2ddc237fcc624c576b9b 100644 (file)
@@ -2598,8 +2598,8 @@ fix_filename_encoding (CT ct) {
                 const char *const new_params = concat (params, "\n", NULL);
 
                 replace_substring (&hf->value, semicolon_loc, new_params);
-                free ((char *) new_params);
-                free ((char *) params);
+                free((void *)new_params); /* Cast away const.  Sigh. */
+                free((void *)params);
             } else {
                 advise (NULL, "did not find semicolon in %s:%s\n",
                         hf->name, hf->value);