From: Tobias Stoeckmann Date: Sat, 4 Apr 2026 16:07:09 +0000 (+0200) Subject: last: Use strtou32_or_err for -n arguments X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6cc85099d4bdbc554f02569bfd9c6a50907480e;p=thirdparty%2Futil-linux.git last: Use strtou32_or_err for -n arguments The maximum amount of records is an unsigned int. Use the correct parser function. Signed-off-by: Tobias Stoeckmann --- diff --git a/login-utils/last.c b/login-utils/last.c index 19f5fd961..12af01298 100644 --- a/login-utils/last.c +++ b/login-utils/last.c @@ -1060,7 +1060,7 @@ int main(int argc, char **argv) ctl.extended = 1; break; case 'n': - ctl.maxrecs = strtos32_or_err(optarg, _("failed to parse number")); + ctl.maxrecs = strtou32_or_err(optarg, _("failed to parse number")); break; case 'f': if (!files)