We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56c7ab0 + 7bd97d6 commit cabb145Copy full SHA for cabb145
git.c
@@ -369,8 +369,7 @@ static int handle_alias(int *argcp, const char ***argv)
369
die(_("alias '%s' changes environment variables.\n"
370
"You can use '!git' in the alias to do this"),
371
alias_command);
372
- memmove(new_argv - option_count, new_argv,
373
- count * sizeof(char *));
+ MOVE_ARRAY(new_argv - option_count, new_argv, count);
374
new_argv -= option_count;
375
376
if (count < 1)
@@ -385,7 +384,7 @@ static int handle_alias(int *argcp, const char ***argv)
385
384
386
REALLOC_ARRAY(new_argv, count + *argcp);
387
/* insert after command name */
388
- memcpy(new_argv + count, *argv + 1, sizeof(char *) * *argcp);
+ COPY_ARRAY(new_argv + count, *argv + 1, *argcp);
389
390
trace2_cmd_alias(alias_command, new_argv);
391
trace2_cmd_list_config();
0 commit comments