mirror of
https://github.com/RGBCube/crash
synced 2025-05-16 14:14:59 +00:00
fix: fix indexing
This commit is contained in:
parent
119c52f090
commit
aa1d4f6693
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ pub fn main() noreturn {
|
||||||
|
|
||||||
var argi = std.process.args();
|
var argi = std.process.args();
|
||||||
while (argi.next()) |arg| {
|
while (argi.next()) |arg| {
|
||||||
defer args.len += 1;
|
args.len += 1;
|
||||||
args[args.len] = arg;
|
args[args.len - 1] = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
const shells = std.posix.getenv("SHELLS") orelse fallback(alloc, args: {
|
const shells = std.posix.getenv("SHELLS") orelse fallback(alloc, args: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue