From: Jim Meyering Date: Thu, 6 May 2004 14:51:20 +0000 (+0000) Subject: (main): Use xnmalloc, rather than xmalloc. X-Git-Tag: v5.3.0~1611 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89bba9158d94abdf3d49d0814ad09005fd4196a0;p=thirdparty%2Fcoreutils.git (main): Use xnmalloc, rather than xmalloc. --- diff --git a/src/md5sum.c b/src/md5sum.c index 1a9ebab14d..d37a06def7 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -575,7 +575,7 @@ main (int argc, char **argv) case 1: /* --string */ { if (string == NULL) - string = xmalloc ((argc - 1) * sizeof (char *)); + string = xnmalloc (argc - 1, sizeof *string); if (optarg == NULL) optarg = "";