mirror of
https://github.com/tmux/tmux.git
synced 2025-04-27 15:48:54 +00: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)
|
if (argc == 0)
|
||||||
args->argv = NULL;
|
args->argv = NULL;
|
||||||
else
|
else
|
||||||
args->argv = xcalloc(argc, sizeof **args->argv);
|
args->argv = xcalloc(argc, sizeof *args->argv);
|
||||||
|
|
||||||
va_start(ap, argc);
|
va_start(ap, argc);
|
||||||
for (i = 0; i < argc; i++)
|
for (i = 0; i < argc; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user