From c5987241643f885a75a0382acf9c9727f2e3537c Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 6 Jul 2019 00:35:32 +0800 Subject: fix assert error for os.find --- core/src/xmake/os/find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "." -- cgit v1.3.1