[X2Go-Commits] lightdm-remote-session-x2go.git - build-main (branch) updated: 3642390b3c53f469916e02f7a1bebe4ebd0aeba3

X2Go dev team git-admin at x2go.org
Sat Apr 27 13:49:57 CEST 2013


The branch, build-main has been updated
       via  3642390b3c53f469916e02f7a1bebe4ebd0aeba3 (commit)
      from  3c0dce874eeb33720f8b136e661035598689d302 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 socket-sucker.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

The diff of changes is:
diff --git a/socket-sucker.c b/socket-sucker.c
index 7a1e82f..d711cb0 100644
--- a/socket-sucker.c
+++ b/socket-sucker.c
@@ -41,7 +41,12 @@ main (int argc, char * argv[])
 	}
 
 	serv_addr.sun_family = AF_UNIX;
-	snprintf(serv_addr.sun_path, sizeof(serv_addr.sun_path), "%s/%s", home, ".freerdp-socket");
+	
+	int printsize = snprintf(serv_addr.sun_path, sizeof(serv_addr.sun_path) - 1, "%s/%s", home, ".freerdp-socket");
+	if (printsize > sizeof(serv_addr.sun_path) - 1) {
+		return -1;
+	}
+
 	servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
 
 	if ((socket_fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {


hooks/post-receive
-- 
lightdm-remote-session-x2go.git (X2Go-based remote login session support for LightDM)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "lightdm-remote-session-x2go.git" (X2Go-based remote login session support for LightDM).




More information about the x2go-commits mailing list