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);
rfc1524_entry_init(entry);
}
} /* while (!found && (buf = mutt_read_line ())) */
- fclose (fp);
+ m_fclose(&fp);
error:
p_delete(&buf);
return 0;
}
- mutt_check_lookup_list (a, type, SHORT_STRING);
+ mutt_check_lookup_list (a, type, STRING);
while (!found && *curr) {
x = 0;
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);
}