Commit Diff


commit - 4d4f0e19acf862d139c9864de8510c21b5538e9c
commit + 67328d238c1718f1f511e847d8375ea23fb99661
blob - aee8df851e29d193643d9a437af26142614c947f
blob + 5a1aa89162017c148a6d48ca18b54dc949a9fc28
--- gmid.c
+++ gmid.c
@@ -124,7 +124,7 @@ adjust_path(char *path)
 	while (1) {
 		if ((s = strstr(path, "../")) == NULL)
 			return;
-		memmove(s - 3, s, strlen(s)+1);	/* copy also the \0 */
+		memmove(s, s+3, strlen(s)+1);	/* copy also the \0 */
 	}
 }