From 95cc95749a5e783f2b5d2124d783f85820baf937 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 17 May 2012 13:54:29 -0400 Subject: Always use positional arguments in translatable strings https://fedorahosted.org/sssd/ticket/1336 --- src/sss_client/pam_sss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sss_client') diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c index e25792fc..9dca7e3c 100644 --- a/src/sss_client/pam_sss.c +++ b/src/sss_client/pam_sss.c @@ -637,7 +637,7 @@ static int user_info_grace_login(pam_handle_t *pamh, memcpy(&grace, buf + sizeof(uint32_t), sizeof(uint32_t)); ret = snprintf(user_msg, sizeof(user_msg), _("Your password has expired. " - "You have %d grace login(s) remaining."), + "You have %1$d grace login(s) remaining."), grace); if (ret < 0 || ret >= sizeof(user_msg)) { D(("snprintf failed.")); @@ -682,7 +682,7 @@ static int user_info_expire_warn(pam_handle_t *pamh, } ret = snprintf(user_msg, sizeof(user_msg), - _("Your password will expire in %d %s."), expire, unit); + _("Your password will expire in %1$d %2$s."), expire, unit); if (ret < 0 || ret >= sizeof(user_msg)) { D(("snprintf failed.")); return PAM_SYSTEM_ERR; -- cgit