Fix two small bugs in getopt_long_only handling:
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 10 Jan 2005 17:40:32 +0000 (17:40 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 10 Jan 2005 17:40:32 +0000 (17:40 +0000)
commitc892a7a12cc20b9b18299f6f1c09b85ca0a2ec0f
tree6a8cf4cd9dd5d420dc5784d8f5cdc80f6590a915
parent6fb80e2200dfcd768ba92ac8147685494fffc32c
Fix two small bugs in getopt_long_only handling:
- a short option followed by a long option is parsed as that
  (inspired by OpenBSD)
- the place variable has to be reset after long option parsing failed
lib/libc/stdlib/getopt_long.c