aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-11-10 20:38:24 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-11-10 20:38:24 +0100
commit0ec74159dd1f398df2f174b2d524326b75ebee96 (patch)
treec09987552ab329071879c2dbe71ba5d621af8331
parent179e19ef771d0c6d12020b89587ef754f7e725ae (diff)
downloadlibpam-x2go-0ec74159dd1f398df2f174b2d524326b75ebee96.tar.gz
libpam-x2go-0ec74159dd1f398df2f174b2d524326b75ebee96.tar.bz2
libpam-x2go-0ec74159dd1f398df2f174b2d524326b75ebee96.zip
Revert "let the buffer end with a space character"
This reverts commit 179e19ef771d0c6d12020b89587ef754f7e725ae.
-rw-r--r--src/pam-x2go-children.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pam-x2go-children.c b/src/pam-x2go-children.c
index f9bf18d..e86da1f 100644
--- a/src/pam-x2go-children.c
+++ b/src/pam-x2go-children.c
@@ -155,9 +155,7 @@ session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruse
goto cleanup;
}
- /* 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);
+ 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