int mutt_compose_attachment(struct Body *a)
{
char type[STRING];
- char command[STRING];
+ char command[HUGE_STRING];
char newfile[_POSIX_PATH_MAX] = "";
struct Rfc1524MailcapEntry *entry = rfc1524_new_entry();
bool unlink_newfile = false;
int mutt_edit_attachment(struct Body *a)
{
char type[STRING];
- char command[STRING];
+ char command[HUGE_STRING];
char newfile[_POSIX_PATH_MAX] = "";
struct Rfc1524MailcapEntry *entry = rfc1524_new_entry();
bool unlink_newfile = false;
if (rfc1524_mailcap_lookup(a, type, NULL, MUTT_PRINT))
{
- char command[_POSIX_PATH_MAX + STRING];
+ char command[HUGE_STRING];
int piped = false;
mutt_debug(2, "Using mailcap...\n");
{
int r;
+ char cmd[HUGE_STRING];
mutt_endwin();
- snprintf(buf, sizeof(buf), "%s %s", NONULL(Pager), tempfile);
- r = mutt_system(buf);
+ snprintf(cmd, sizeof(cmd), "%s %s", NONULL(Pager), tempfile);
+ r = mutt_system(cmd);
if (r == -1)
- mutt_error(_("Error running \"%s\"!"), buf);
+ mutt_error(_("Error running \"%s\"!"), cmd);
unlink(tempfile);
if (!OptNoCurses)
keypad(stdscr, true);
void mutt_edit_file(const char *editor, const char *data)
{
- char cmd[LONG_STRING];
+ char cmd[HUGE_STRING];
mutt_endwin();
mutt_expand_file_fmt(cmd, sizeof(cmd), editor, data);
struct Rfc1524MailcapEntry *entry = rfc1524_new_entry();
char buffer[LONG_STRING];
char type[STRING];
- char command[LONG_STRING];
+ char command[HUGE_STRING];
char tempfile[_POSIX_PATH_MAX] = "";
char *fname = NULL;
FILE *fpin = NULL;
FILE *fp = NULL;
struct Query *first = NULL;
struct Query *cur = NULL;
- char cmd[_POSIX_PATH_MAX];
+ char cmd[HUGE_STRING];
char *buf = NULL;
size_t buflen;
int dummy = 0;
pid_t mm_pid;
int devnull;
- char cmd[HUGE_STRING + _POSIX_PATH_MAX];
+ char cmd[HUGE_STRING];
char line[HUGE_STRING];
char *t = NULL;
{
int x = 0, y = 0;
int needspipe = true;
- char buf[LONG_STRING];
+ char buf[HUGE_STRING];
char type2[LONG_STRING];
mutt_str_strfcpy(type2, type, sizeof(type2));