simexec(1): switch pointer arithmetic up
This commit is contained in:
parent
f3893c4da1
commit
0faed1a871
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user