lib/package_alternatives.c: fix wrong /. handling for normalizing paths.

This commit is contained in:
Enno Boland 2015-11-08 10:37:26 +01:00
parent 635db51c27
commit 8bd2808108

View File

@ -71,7 +71,7 @@ reinit:
else if (strncmp(p, "/./", 3) == 0 || strncmp(p, "/.", 3) == 0) { else if (strncmp(p, "/./", 3) == 0 || strncmp(p, "/.", 3) == 0) {
memmove(p, p+2, strlen(p+2) + 1); memmove(p, p+2, strlen(p+2) + 1);
} }
else if (*p == '/') if (*p == '/')
seg = p; seg = p;
} }
return path; return path;