summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libshouldbeinlibc/argp-parse.c')
-rw-r--r--libshouldbeinlibc/argp-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/argp-parse.c b/libshouldbeinlibc/argp-parse.c
index fa3da19f..39acdeb3 100644
--- a/libshouldbeinlibc/argp-parse.c
+++ b/libshouldbeinlibc/argp-parse.c
@@ -242,7 +242,7 @@ argp_parse (struct argp *argp, int argc, char **argv, unsigned flags,
values (the sign of the lower bits is preserved
however)... */
long_end->val =
- (opt->key & USER_MASK)
+ ((opt->key | real->key) & USER_MASK)
+ (((group - groups) + 1) << USER_BITS);
/* Keep the LONG_OPTS list terminated. */