diff options
Diffstat (limited to 'src/usermod.c')
-rw-r--r-- | src/usermod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usermod.c b/src/usermod.c index c11e275e..0fcf0325 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -1062,7 +1062,7 @@ static void process_flags (int argc, char **argv) eflg = true; break; case 'f': - if ( (getlong(optarg, &user_newinactive) == -1) + if ( (str2sl(&user_newinactive, optarg) == -1) || (user_newinactive < -1)) { fprintf (stderr, _("%s: invalid numeric argument '%s'\n"), |