aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-21 18:34:41 -0500
committerTed Gould <ted@gould.cx>2012-08-21 18:34:41 -0500
commitefeb59db64ab1981a270f30f001c0a812047581e (patch)
tree1c40bc290fe16c30075e91e25402faded2de8903 /src
parent1cec58d1f5060c2042c2c615d3b40f7a18396432 (diff)
downloadlibpam-freerdp2-efeb59db64ab1981a270f30f001c0a812047581e.tar.gz
libpam-freerdp2-efeb59db64ab1981a270f30f001c0a812047581e.tar.bz2
libpam-freerdp2-efeb59db64ab1981a270f30f001c0a812047581e.zip
A newline for scanf
Diffstat (limited to 'src')
-rw-r--r--src/pam-freerdp.c3
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]);