diff options
| -rw-r--r-- | core/src/xmake/os/find.c | 2 |
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 "." |
