Fix exec example (#341)

This commit is contained in:
Paul Kulchenko 2022-03-04 17:51:32 -08:00 committed by GitHub
parent db6152e21d
commit 0f035119b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,6 @@ int main(int argc, char *argv[]) {
fputs("USAGE: EXEC.COM PROG ARGV₀ [ARGV₁...]\n", stderr);
return 1;
}
execv(argv[1], argv + 2);
execv(argv[1], argv + 1);
return 127;
}