diff options
author | Colin Watson <cjwatson@debian.org> | 2004-02-11 20:14:08 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2004-02-11 20:14:08 +0000 |
commit | e0fc93e8ab13cdfdbb7192250be7f6ce56606775 (patch) | |
tree | 963daad65f9dbf5c5ff8ad327cb58904a4627b74 | |
parent | f29ad9e9f9030ec08cdf41969ce3d5f1f57d45c6 (diff) |
Darren Tucker: Add newline to accumulated PAM_TEXT_INFO and PAM_ERROR_MSG
messages.
-rw-r--r-- | auth-pam.c | 4 |
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: |