mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-07 16:54:01 +01:00
Pass the right size to calloc (* not **).
This commit is contained in:
parent
d5269a2eed
commit
9dacc1700b
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user