From d68f1a3c3baaa650d10a941d53bdd894eaa499af Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 20 Mar 2005 02:21:31 +0000 Subject: 2005-03-20 Marcus Brinkmann * tmpfs.c (parse_opt): Use the right argument for parsing the mode. --- tmpfs/tmpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tmpfs/tmpfs.c') 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"); -- cgit v1.2.3