Browse Source

* mygetopt.c: fix a parsing issue with short options.

tags/v0.99.beta14
Sam Hocevar sam 16 years ago
parent
commit
6a61202a28
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/mygetopt.c

+ 1
- 1
src/mygetopt.c View File

@@ -59,7 +59,7 @@ int mygetopt(int argc, char * const _argv[], const char *optstring,
if(tmp[1] == ':')
{
if(flag[2] != '\0')
myoptarg = tmp + 2;
myoptarg = flag + 2;
else
myoptarg = argv[myoptind++];
return ret;


Loading…
Cancel
Save