1
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

View File

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