X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmshcmds.c;h=63ee99c85b8b98ee12556f5beabffd0a820039e7;hp=3548b7ec355df13713f8c96437f2a1e084fe88b2;hb=1513f7668c494c4583141d6115669b7198c14556;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/uip/mshcmds.c b/uip/mshcmds.c index 3548b7e..63ee99c 100644 --- a/uip/mshcmds.c +++ b/uip/mshcmds.c @@ -21,8 +21,8 @@ #include #include #include +#include -extern int errno; static char delim3[] = "-------"; /* from burst.c */ @@ -2161,8 +2161,7 @@ scancmd (char **args) if (*dp == '\\' || *dp == '"' || *dp == '\n') i++; i++; - if ((ep = malloc ((unsigned) i)) == NULL) - adios (NULL, "out of memory"); + ep = mh_xmalloc ((unsigned) i); for (dp = nfs, fp = ep; *dp; dp++) { if (*dp == '\n') { *fp++ = '\\', *fp++ = 'n'; @@ -3009,7 +3008,6 @@ process (int msgnum, char *proc, int vecp, char **vec) strncpy (tmpfil, m_scratch ("", invo_name), sizeof(tmpfil)); if ((out = fopen (tmpfil, "w")) == NULL) { int olderr; - extern int errno; char newfil[80]; olderr = errno;