diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-27 22:59:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-27 22:59:10 +0200 |
commit | ace390c5f03c2b87fff617e66ddec3ad75f6a93d (patch) | |
tree | d6439bee857c9d0d959222927e28ac861eccb766 /src/argparser.c | |
parent | derp (diff) | |
download | argparser-ace390c5f03c2b87fff617e66ddec3ad75f6a93d.tar.gz argparser-ace390c5f03c2b87fff617e66ddec3ad75f6a93d.tar.bz2 argparser-ace390c5f03c2b87fff617e66ddec3ad75f6a93d.tar.xz |
c fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/argparser.c')
-rw-r--r-- | src/argparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argparser.c b/src/argparser.c index f274fd3..aa9650a 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -242,7 +242,7 @@ char* args_standard_abbreviations(char* argument, char** options, long count) for (i = 0; i < count; i++) { long match = 0; - char* opt = *options; + char* opt = *(options + i); while (*(argument + match) && (*(opt + match) == *(argument + match))) match++; if (*(argument + match) == 0) @@ -1461,7 +1461,7 @@ long args_parse(int argc, char** argv) } else { - if ((injection = args__abbreviations(arg)) == null) + if ((injection = args__abbreviations(arg_opt)) == null) { if (++args_unrecognised_count <= 5) fprintf(args_out, "%s: warning: unrecognised option %s\n", args_program, arg_opt); |