From 6a61202a28e68cada5a8f144b011e709ff736732 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 16 Jul 2008 17:23:31 +0000 Subject: [PATCH] * mygetopt.c: fix a parsing issue with short options. --- src/mygetopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mygetopt.c b/src/mygetopt.c index 2201c2b..57ddd14 100644 --- a/src/mygetopt.c +++ b/src/mygetopt.c @@ -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;