diff options
author | Ted Gould <ted@gould.cx> | 2012-08-21 18:34:41 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-08-21 18:34:41 -0500 |
commit | efeb59db64ab1981a270f30f001c0a812047581e (patch) | |
tree | 1c40bc290fe16c30075e91e25402faded2de8903 /src | |
parent | 1cec58d1f5060c2042c2c615d3b40f7a18396432 (diff) | |
download | libpam-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.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]); |