Fix typos in length calculations

Link: <https://github.com/shadow-maint/shadow/pull/607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2022-12-16 01:08:12 +01:00 committed by Iker Pedrosa
parent 06c30450ce
commit ed69feaaff

View File

@ -578,11 +578,11 @@ static void prepare_failure_reports (void)
"group %s/%ju", group_name, (uintmax_t) group_id); "group %s/%ju", group_name, (uintmax_t) group_id);
#ifdef SHADOWGRP #ifdef SHADOWGRP
(void) snprintf (info_gshadow.action, (void) snprintf (info_gshadow.action,
512 - strlen (info_group.audit_msg), 512 - strlen (info_gshadow.audit_msg),
"group %s", group_name); "group %s", group_name);
#endif #endif
(void) snprintf (info_passwd.action, (void) snprintf (info_passwd.action,
512 - strlen (info_group.audit_msg), 512 - strlen (info_passwd.audit_msg),
"group %s/%ju", group_name, (uintmax_t) group_id); "group %s/%ju", group_name, (uintmax_t) group_id);
if (nflg) { if (nflg) {