summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-06 00:35:32 +0800
committerruki <[email protected]>2019-07-05 22:11:19 +0800
commitc5987241643f885a75a0382acf9c9727f2e3537c (patch)
tree62d176eb27b47beb3036e387dcc1467c8b6be988 /core/src
parent53949acfd132553f697adfe7e33394bec1d6f8dc (diff)
fix assert error for os.find
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/os/find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/os/find.c b/core/src/xmake/os/find.c
index 198e0a5bf..3a1271048 100644
--- a/core/src/xmake/os/find.c
+++ b/core/src/xmake/os/find.c
@@ -90,7 +90,7 @@ static tb_bool_t xm_os_find_walk(tb_char_t const* path, tb_file_info_t const* in
tb_assert_and_check_return_val(rootdir && rootlen, tb_false);
// check
- tb_assert(!tb_strcmp(path, rootdir));
+ tb_assert(!tb_strncmp(path, rootdir, rootlen));
tb_assert(rootlen + 1 <= tb_strlen(path));
// skip the rootdir if not "."