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 | 758b090f738e41359ec6386439a5df0d5f4c9744 (patch) | |
tree | 1c40bc290fe16c30075e91e25402faded2de8903 /src | |
parent | adc0f8165a106c3dfe52903726d94b695b6ab717 (diff) | |
download | libpam-x2go-758b090f738e41359ec6386439a5df0d5f4c9744.tar.gz libpam-x2go-758b090f738e41359ec6386439a5df0d5f4c9744.tar.bz2 libpam-x2go-758b090f738e41359ec6386439a5df0d5f4c9744.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]); |