diff options
Diffstat (limited to 'src/libstddjb/gol_argv.c')
| -rw-r--r-- | src/libstddjb/gol_argv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstddjb/gol_argv.c b/src/libstddjb/gol_argv.c index 21dc790..9e648e3 100644 --- a/src/libstddjb/gol_argv.c +++ b/src/libstddjb/gol_argv.c @@ -12,15 +12,15 @@ unsigned int gol_argv (char const *const *argv, gol_bool const *b, unsigned int { if (problem > 0) { - char s[2] = { argv[-r][problem], 0 } ; + char s[2] = { argv[-r-1][problem], 0 } ; strerr_dief4x(100, "unrecognized ", "short ", "option: ", s) ; } else if (!problem) - strerr_dief3x(100, "invalid ", "option: ", argv[-r]) ; + strerr_dief3x(100, "invalid ", "option: ", argv[-r-1]) ; else if (problem == -1) - strerr_dief4x(100, "unrecognized ", "boolean ", "option: ", argv[-r]) ; + strerr_dief4x(100, "unrecognized ", "boolean ", "option: ", argv[-r-1]) ; else - strerr_dief3x(100, "unrecognized ", "option with argument: ", argv[-r]) ; + strerr_dief3x(100, "unrecognized ", "option with argument: ", argv[-r-1]) ; } else return r ; } |
