diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-12-04 10:23:33 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-12-04 10:23:33 -0500 |
commit | 014275b547e3059db5c45986408757c250e8198d (patch) | |
tree | c98cbdb623b6917b1206d2e18f38f6edc8c7a896 /src/unistd/isatty.c | |
parent | be1f67ab6fde1989af7b2e2946804e9009931a8a (diff) | |
download | musl-014275b547e3059db5c45986408757c250e8198d.tar.gz |
fix getopt handling of ':' modifier for multibyte option characters
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 ':'.
Diffstat (limited to 'src/unistd/isatty.c')
0 files changed, 0 insertions, 0 deletions