diff options
Diffstat (limited to 'tmpfs/tmpfs.c')
-rw-r--r-- | tmpfs/tmpfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c index 928ebaa4..1539054f 100644 --- a/tmpfs/tmpfs.c +++ b/tmpfs/tmpfs.c @@ -139,7 +139,7 @@ parse_opt (int key, char *arg, struct argp_state *state) case 'm': /* --mode=OCTAL */ { char *end = NULL; - mode_t mode = strtoul (state->argv[state->next], &end, 8); + mode_t mode = strtoul (arg, &end, 8); if (end == NULL || end == arg) { argp_error (state, "argument must be an octal number"); |