summaryrefslogtreecommitdiffstats
path: root/src/sss_client
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-05-17 13:54:29 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-05-22 09:11:13 -0400
commit95cc95749a5e783f2b5d2124d783f85820baf937 (patch)
treeab9407bb44c8019ac3d08a9bfcde9d6825de4b24 /src/sss_client
parentbe174855d948ca8eeebe63be50e20b9daad58019 (diff)
downloadsssd-95cc95749a5e783f2b5d2124d783f85820baf937.tar.gz
sssd-95cc95749a5e783f2b5d2124d783f85820baf937.tar.xz
sssd-95cc95749a5e783f2b5d2124d783f85820baf937.zip
Always use positional arguments in translatable strings
https://fedorahosted.org/sssd/ticket/1336
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/pam_sss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index e25792fc0..9dca7e3c7 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;