summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 04cabbca2..8ffc1a587 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -410,9 +410,9 @@ sshpam_query(void *ctx, char **name, char **info,
410 case PAM_ERROR_MSG: 410 case PAM_ERROR_MSG:
411 case PAM_TEXT_INFO: 411 case PAM_TEXT_INFO:
412 /* accumulate messages */ 412 /* accumulate messages */
413 len = plen + strlen(msg) + 1; 413 len = plen + strlen(msg) + 2;
414 **prompts = xrealloc(**prompts, len); 414 **prompts = xrealloc(**prompts, len);
415 plen += snprintf(**prompts + plen, len, "%s", msg); 415 plen += snprintf(**prompts + plen, len, "%s\n", msg);
416 xfree(msg); 416 xfree(msg);
417 break; 417 break;
418 case PAM_SUCCESS: 418 case PAM_SUCCESS: