0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

Fix crash due to command line argument parsing

zig --help -> ok
zig --help --c-source -> ok
zig --c-source --help -> crash [fixed]

'i' was being incremented without regard for the 'argc' limit, so
we were running off the end of 'argv'.
This commit is contained in:
Matt Stancliff 2019-04-21 11:14:18 -04:00 • committed by Andrew Kelley
commit a4e506510b