aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ChangeLog4
-rw-r--r--util/argparse.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index dc24d3851..2311a3ade 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,7 @@
+Sat Dec 12 18:40:32 CET 1998 Werner Koch <[email protected]>
+
+ * argparse.c (arg_pars): fixed opts[i] with negative index.
+
Fri Nov 27 21:37:41 CET 1998 Werner Koch <[email protected]>
* dotlock.c: Implemented
diff --git a/util/argparse.c b/util/argparse.c
index ffda57238..4810d8700 100644
--- a/util/argparse.c
+++ b/util/argparse.c
@@ -516,9 +516,9 @@ arg_parse( ARGPARSE_ARGS *arg, ARGPARSE_OPTS *opts)
}
if( i == -2 ) /* ambiguous option */
- arg->r_opt = (opts[i].flags & 256)? -9:-8;
+ arg->r_opt = -8;
else if( i == -1 ) {
- arg->r_opt = (opts[i].flags & 256)? -7:-2;
+ arg->r_opt = -2;
arg->r.ret_str = s+2;
}
else