diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pam-freerdp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c index b06a56a..5295098 100644 --- a/src/pam-freerdp.c +++ b/src/pam-freerdp.c @@ -162,7 +162,8 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, const char **argv) int forkret = 0; int bytesout = 0; - bytesout = write(stdinpipe[1], password, strlen(password)); + bytesout += write(stdinpipe[1], password, strlen(password)); + bytesout += write(stdinpipe[1], "\n", 1); close(stdinpipe[1]); |