X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpopi.c;h=ef11a4a4937654177c0c9414a8fabce5138c80a3;hp=e26e346ee6760503a609d2b12a02eb40d8e6847b;hb=1bb1f6c3f38b05060bf699ea2743f7386889bf63;hpb=99e5043db7ee6cf80f93708610a6e584a8068c6a diff --git a/uip/popi.c b/uip/popi.c index e26e346..ef11a4a 100644 --- a/uip/popi.c +++ b/uip/popi.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #ifndef RPOP @@ -402,8 +403,7 @@ popi (void) 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';