lib/package_alternatives.c: revert back to orig order.
my mistake, I somehow confused it.
This commit is contained in:
parent
35ae128826
commit
e155ba6d20
@ -98,7 +98,7 @@ relpath(char *from, char *to)
|
||||
|
||||
for (up = -1, from--; from && *from; from = strchr(from + 1, '/'), up++);
|
||||
|
||||
rel = calloc(1, 3 * up + strlen(p));
|
||||
rel = calloc(3 * up + strlen(p), 1);
|
||||
if (!rel)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user