summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sss_client/pam_sss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c
index d919c1cf..6fb76370 100644
--- a/sss_client/pam_sss.c
+++ b/sss_client/pam_sss.c
@@ -73,7 +73,7 @@ static int eval_response(pam_handle_t *pamh, int buflen, uint8_t *buf)
D(("env item: [%s]", &buf[p]));
if (*type == PAM_ENV_ITEM || *type == ALL_ENV_ITEM) {
- ret = pam_putenv(pamh, &buf[p]);
+ ret = pam_putenv(pamh, (char *)&buf[p]);
if (ret != PAM_SUCCESS) {
D(("pam_putenv failed.\n"));
break;
@@ -81,7 +81,7 @@ static int eval_response(pam_handle_t *pamh, int buflen, uint8_t *buf)
}
if (*type == ENV_ITEM || *type == ALL_ENV_ITEM) {
- env_item = strdup(&buf[p]);
+ env_item = strdup((char *)&buf[p]);
if (env_item == NULL) {
D(("strdup failed\n"));
break;