(main): Use xnmalloc, rather than xmalloc.

This commit is contained in:
Jim Meyering committed 2004-05-06 14:51:20 +00:00
1 parent e93ae52456
commit 89bba9158d
1 file changed
+1 -1
+1 -1
View File
@@ -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 = "";