mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
Fix exec example to avoid skipping the first parameter
This commit is contained in:
parent
d6a039821f
commit
8d5c59ddb2
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@ int main(int argc, char *argv[]) {
|
||||||
fputs("USAGE: EXEC.COM PROG ARGV₀ [ARGV₁...]\n", stderr);
|
fputs("USAGE: EXEC.COM PROG ARGV₀ [ARGV₁...]\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
execv(argv[1], argv + 2);
|
execv(argv[1], argv + 1);
|
||||||
return 127;
|
return 127;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue