summaryrefslogtreecommitdiff
path: root/modules/pam_exec
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_exec')
-rw-r--r--modules/pam_exec/pam_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_exec/pam_exec.c b/modules/pam_exec/pam_exec.c
index 34ba7404..49790d80 100644
--- a/modules/pam_exec/pam_exec.c
+++ b/modules/pam_exec/pam_exec.c
@@ -208,7 +208,7 @@ call_exec (pam_handle_t *pamh, int argc, const char **argv)
exit (ENOMEM);
for (i = 0; i < (argc - optargc); i++)
- arggv[i] = argv[i+optargc];
+ arggv[i] = strdup(argv[i+optargc]);
arggv[i] = NULL;
if (debug)