mirror of
https://github.com/RGBCube/crash
synced 2025-05-14 05:04: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();
|
||||
while (argi.next()) |arg| {
|
||||
defer args.len += 1;
|
||||
args[args.len] = arg;
|
||||
args.len += 1;
|
||||
args[args.len - 1] = arg;
|
||||
}
|
||||
|
||||
const shells = std.posix.getenv("SHELLS") orelse fallback(alloc, args: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue