X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmshcmds.c;h=63ee99c85b8b98ee12556f5beabffd0a820039e7;hp=4566029c121f86aaea4c1f1b35da681ab62b1b69;hb=1513f7668c494c4583141d6115669b7198c14556;hpb=4885712264980e6cbc2039f9158027bee9213475 diff --git a/uip/mshcmds.c b/uip/mshcmds.c index 4566029..63ee99c 100644 --- a/uip/mshcmds.c +++ b/uip/mshcmds.c @@ -21,6 +21,7 @@ #include #include #include +#include static char delim3[] = "-------"; /* from burst.c */ @@ -2160,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';