aboutsummaryrefslogtreecommitdiff
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
commit758b090f738e41359ec6386439a5df0d5f4c9744 (patch)
tree1c40bc290fe16c30075e91e25402faded2de8903
parentadc0f8165a106c3dfe52903726d94b695b6ab717 (diff)
downloadlibpam-x2go-758b090f738e41359ec6386439a5df0d5f4c9744.tar.gz
libpam-x2go-758b090f738e41359ec6386439a5df0d5f4c9744.tar.bz2
libpam-x2go-758b090f738e41359ec6386439a5df0d5f4c9744.zip
A newline for scanf
-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]);