File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -369,8 +369,7 @@ static int handle_alias(int *argcp, const char ***argv)
369
369
die (_ ("alias '%s' changes environment variables.\n"
370
370
"You can use '!git' in the alias to do this" ),
371
371
alias_command );
372
- memmove (new_argv - option_count , new_argv ,
373
- count * sizeof (char * ));
372
+ MOVE_ARRAY (new_argv - option_count , new_argv , count );
374
373
new_argv -= option_count ;
375
374
376
375
if (count < 1 )
@@ -385,7 +384,7 @@ static int handle_alias(int *argcp, const char ***argv)
385
384
386
385
REALLOC_ARRAY (new_argv , count + * argcp );
387
386
/* insert after command name */
388
- memcpy (new_argv + count , * argv + 1 , sizeof ( char * ) * * argcp );
387
+ COPY_ARRAY (new_argv + count , * argv + 1 , * argcp );
389
388
390
389
trace2_cmd_alias (alias_command , new_argv );
391
390
trace2_cmd_list_config ();
You can’t perform that action at this time.
0 commit comments