Fix bug in dirup function
This commit is contained in:
parent
d27fc14b31
commit
9008e10651
@ -40,7 +40,7 @@ void dirup(char *dst, u64 levels, const char *path) {
|
|||||||
--length;
|
--length;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (u64 i = length - 1; i >= 0; --i) {
|
for (i64 i = length - 1; i >= 0; --i) {
|
||||||
if (path[i] == path_sep) {
|
if (path[i] == path_sep) {
|
||||||
++sep_count;
|
++sep_count;
|
||||||
end_index = i;
|
end_index = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user