summaryrefslogtreecommitdiffstats
path: root/src/chgpasswd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chgpasswd.c')
-rw-r--r--src/chgpasswd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chgpasswd.c b/src/chgpasswd.c
index 61aa10fb..1ff6776b 100644
--- a/src/chgpasswd.c
+++ b/src/chgpasswd.c
@@ -198,19 +198,19 @@ static void process_flags (int argc, char **argv)
}
#if defined(USE_SHA_CRYPT)
if ( ( ((0 == strcmp (crypt_method, "SHA256")) || (0 == strcmp (crypt_method, "SHA512")))
- && (-1 == getlong(optarg, &sha_rounds)))) {
+ && (-1 == str2sl(&sha_rounds, optarg)))) {
bad_s = 1;
}
#endif /* USE_SHA_CRYPT */
#if defined(USE_BCRYPT)
if (( (0 == strcmp (crypt_method, "BCRYPT"))
- && (-1 == getlong(optarg, &bcrypt_rounds)))) {
+ && (-1 == str2sl(&bcrypt_rounds, optarg)))) {
bad_s = 1;
}
#endif /* USE_BCRYPT */
#if defined(USE_YESCRYPT)
if (( (0 == strcmp (crypt_method, "YESCRYPT"))
- && (-1 == getlong(optarg, &yescrypt_cost)))) {
+ && (-1 == str2sl(&yescrypt_cost, optarg)))) {
bad_s = 1;
}
#endif /* USE_YESCRYPT */