diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-11-10 20:33:30 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-11-10 20:33:30 +0100 |
commit | 179e19ef771d0c6d12020b89587ef754f7e725ae (patch) | |
tree | a5564a376684f53c49fca15acc7413f75a26f05c /src | |
parent | 220ba1cfc103ee4f932663fa1d2d956505ad4a94 (diff) | |
download | libpam-x2go-179e19ef771d0c6d12020b89587ef754f7e725ae.tar.gz libpam-x2go-179e19ef771d0c6d12020b89587ef754f7e725ae.tar.bz2 libpam-x2go-179e19ef771d0c6d12020b89587ef754f7e725ae.zip |
let the buffer end with a space character
Diffstat (limited to 'src')
-rw-r--r-- | src/pam-x2go-children.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pam-x2go-children.c b/src/pam-x2go-children.c index e86da1f..f9bf18d 100644 --- a/src/pam-x2go-children.c +++ b/src/pam-x2go-children.c @@ -155,7 +155,9 @@ session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruse goto cleanup; } - buffer_fill = snprintf(buffer, buffer_len, "%s %s %s %s", ruser, password, rhost, rdomain); + /* fill the buffer that we will pipe into the .x2go-socket file, the blank at the end of the string is tremendously + important */ + buffer_fill = snprintf(buffer, buffer_len, "%s %s %s %s ", ruser, password, rhost, rdomain); if (buffer_fill > buffer_len) { /* This really shouldn't happen, but if for some reason we have an difference between they way that the lengths are calculated we want |