Pass the right size to calloc (* not **).

This commit is contained in:
Nicholas Marriott 2011-07-09 01:36:42 +00:00
parent d5269a2eed
commit 9dacc1700b

View File

@ -40,7 +40,7 @@ args_create(int argc, ...)
if (argc == 0)
args->argv = NULL;
else
args->argv = xcalloc(argc, sizeof **args->argv);
args->argv = xcalloc(argc, sizeof *args->argv);
va_start(ap, argc);
for (i = 0; i < argc; i++)