X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc1524.c;h=fdbf1823c632c23557d87aeed3ed3368b89e86f9;hp=39e46e611082e9db39c02a4015d3f88648f98546;hb=2dc50decd320b310ef56c14041b6fa4fefd865ac;hpb=9ed7a487e3a922f2cbb222961c2c9710c3a65f91 diff --git a/lib-mime/rfc1524.c b/lib-mime/rfc1524.c index 39e46e6..fdbf182 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); @@ -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; @@ -389,7 +389,7 @@ int rfc1524_mailcap_lookup (BODY * a, char *type, rfc1524_entry * entry, continue; path[x] = '\0'; - mutt_expand_path (path, sizeof (path)); + mutt_expand_path(path, sizeof(path)); found = rfc1524_mailcap_parse (a, path, type, entry, opt); }