X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/db9af98fd5699ef5b61444132adc82cb6123882a..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/uip/mhfixmsg.c diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 7fd7caa9..ee25624c 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -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);