mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-20 01:58:57 +02:00
Pass the right size to calloc (* not **).
This commit is contained in:
@@ -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++)
|
||||
|
Reference in New Issue
Block a user