mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 02:23:15 +01:00
Pass the right size to calloc (* not **).
This commit is contained in:
parent
67e70770c8
commit
5ae4b4acc0
@ -39,7 +39,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