X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=353e13ebe2b52108587dd2b2ea0bcb0e6806b291;hb=9d770a9942524d66989c629f5ddeddcd0e79d148;hp=bb1e6b4aafba17ced1ccaa865e94800294c23b58;hpb=cff8de7654cf393a494b01a587bd4d503d15a5e3;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index bb1e6b4..353e13e 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -141,9 +141,9 @@ WhatNow (int argc, char **argv) char **argp, **arguments; struct stat st; char *attach = NMH_ATTACH_HEADER;/* attachment header field name */ - char cwd[MAXPATHLEN + 1]; /* current working directory */ - char file[MAXPATHLEN + 1]; /* file name buffer */ - char shell[MAXPATHLEN + 1]; /* shell response buffer */ + char cwd[PATH_MAX + 1]; /* current working directory */ + char file[PATH_MAX + 1]; /* file name buffer */ + char shell[PATH_MAX + 1]; /* shell response buffer */ FILE *f; /* read pointer for bgnd proc */ char *l; /* set on -l to alist command */ int n; /* set on -n to alist command */ @@ -821,14 +821,12 @@ sendfile (char **arg, char *file, int pushsw) /* Translate MIME composition file, if necessary */ if ((cp = context_find ("automimeproc")) && (!strcmp (cp, "1")) - && !getenv ("NOMHNPROC") && check_draft (file) && (buildfile (NULL, file) == NOTOK)) return 0; /* For backwards compatibility */ if ((cp = context_find ("automhnproc")) - && !getenv ("NOMHNPROC") && check_draft (file) && (i = editfile (&cp, NULL, file, NOUSE, NULL, NULL, NULL, 0, 0))) return 0;