[X2Go-Commits] libpam-x2go.git - x2gosession (branch) updated: 1708318511cf61c58913e8f14a8fb56ff1510bdd

X2Go dev team git-admin at x2go.org
Wed Apr 24 18:47:23 CEST 2013


The branch, x2gosession has been updated
       via  1708318511cf61c58913e8f14a8fb56ff1510bdd (commit)
      from  d4ba1e134fcce95f8b7983fa9fba6d9d18f8f68b (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:
 src/pam-freerdp.c |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 440ee40..0277e0c 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -92,13 +92,12 @@ get_item (pam_handle_t * pamh, int type)
 		if ((subloc = strstr(retval, "://")) != NULL) {
 			char * original = retval;
 			char * newish = retval + strlen("://");
-			char * c;
-			for (c = newish; *c != '\0'; c++) {
-				if (*c == '/') {
-					*c = '\0';
-					break;
-				}
+			char * c = strstr(newish, "/");
+
+			if (c != NULL) {
+				c[0] = '\0';
 			}
+
 			retval = strdup(newish);
 			free(original);
 		}


hooks/post-receive
-- 
libpam-x2go.git (Remote login session via X2Go (PAM module))

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 "libpam-x2go.git" (Remote login session via X2Go (PAM module)).




More information about the x2go-commits mailing list