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)
369369 die (_ ("alias '%s' changes environment variables.\n"
370370 "You can use '!git' in the alias to do this" ),
371371 alias_command );
372- memmove (new_argv - option_count , new_argv ,
373- count * sizeof (char * ));
372+ MOVE_ARRAY (new_argv - option_count , new_argv , count );
374373 new_argv -= option_count ;
375374
376375 if (count < 1 )
@@ -385,7 +384,7 @@ static int handle_alias(int *argcp, const char ***argv)
385384
386385 REALLOC_ARRAY (new_argv , count + * argcp );
387386 /* insert after command name */
388- memcpy (new_argv + count , * argv + 1 , sizeof ( char * ) * * argcp );
387+ COPY_ARRAY (new_argv + count , * argv + 1 , * argcp );
389388
390389 trace2_cmd_alias (alias_command , new_argv );
391390 trace2_cmd_list_config ();
You can’t perform that action at this time.
0 commit comments