From 088636bc380a5f5f61f244e22e197d043de9de1a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 6 Mar 2020 12:43:58 +1100 Subject: Cleanup: use BLI_strnlen instead of strlen --- source/blender/editors/space_file/fsmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index f9dbe49604d..c8ced692f6e 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -1014,7 +1014,7 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks) * the FS_CATEGORY_OTHER category so that these directories * have the appropriate icons when they are added to the Bookmarks. */ #define FS_UDIR_PATH(dir, icon) \ - if (strlen(dir) > 2) { \ + if (BLI_strnlen(dir, 3) > 2) { \ fsmenu_insert_entry(fsmenu, FS_CATEGORY_OTHER, dir, NULL, icon, FS_INSERT_LAST); \ } -- cgit v1.2.3