From 9008e1065193dcd7d1223d784f19d799be8ae4b0 Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sun, 9 Jun 2024 16:19:26 +0100 Subject: [PATCH] Fix bug in dirup function --- src/cpath/cpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpath/cpath.c b/src/cpath/cpath.c index 97d3985..ab3130e 100644 --- a/src/cpath/cpath.c +++ b/src/cpath/cpath.c @@ -40,7 +40,7 @@ void dirup(char *dst, u64 levels, const char *path) { --length; } - for (u64 i = length - 1; i >= 0; --i) { + for (i64 i = length - 1; i >= 0; --i) { if (path[i] == path_sep) { ++sep_count; end_index = i;