X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc1524.c;h=5b6eb50f7ada8c6aba76fe13c021de155ae3c840;hp=08090e00b9f2d325966e33857ab3210ff7746ed3;hb=07ccefd6c97ddd433d8432f7b4596a5572e09b48;hpb=fcaada9d60ee8f52bbc8503c06fe061ca9e2fa68 diff --git a/lib-mime/rfc1524.c b/lib-mime/rfc1524.c index 08090e0..5b6eb50 100644 --- a/lib-mime/rfc1524.c +++ b/lib-mime/rfc1524.c @@ -301,7 +301,7 @@ rfc1524_mailcap_parse(BODY *a, const char *filename, const char *type, ssize_t len = m_strlen(value) + STRING; char *testcmd = p_new(char, len); - strcpy(testcmd, value); + m_strcpy(testcmd, len, value); rfc1524_expand_command(a, a->filename, type, testcmd, len); found = !mutt_system(testcmd); p_delete(&testcmd); @@ -338,7 +338,7 @@ rfc1524_mailcap_parse(BODY *a, const char *filename, const char *type, rfc1524_entry_init(entry); } } /* while (!found && (buf = mutt_read_line ())) */ - fclose (fp); + m_fclose(&fp); error: p_delete(&buf); @@ -374,7 +374,7 @@ int rfc1524_mailcap_lookup (BODY * a, char *type, rfc1524_entry * entry, return 0; } - mutt_check_lookup_list (a, type, SHORT_STRING); + mutt_check_lookup_list (a, type, STRING); while (!found && *curr) { x = 0;