mirror of https://git.musl-libc.org/git/musl
Browse Source
the previous hard-coded offsets of +1 and +2 contained a hidden assumption that the option character matched was single-byte, despite this implementation of getopt attempting to support multibyte option characters. this patch reworks the matching logic to leave the final index pointing just past the matched character so that fixed offsets can be used to check for ':'.master
1 changed files with 9 additions and 4 deletions
Loading…
Reference in new issue