1
0
Fork 0

simexec(1): switch pointer arithmetic up

This commit is contained in:
dtb 2024-04-18 22:47:50 -06:00
parent f3893c4da1
commit 0faed1a871
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
#include <stdio.h> /* fprintf(3), NULL */
#include <unistd.h> /* execv(3), */
#if !defined EX_USAGE
# include <sysexits.h> /* EX_USAGE */
#endif
@ -16,5 +15,5 @@ int main(int argc, char *argv[]){
return EX_USAGE;
}
return execv(argv[1], argv+2);
return execv(argv[1], &argv[2]);
}