diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 04:43:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 04:43:58 +0300 |
commit | 088636bc380a5f5f61f244e22e197d043de9de1a (patch) | |
tree | 03e1b652ab6c94de2eadd1658e51cea332561938 /source/blender/editors/space_file | |
parent | 5229448c43f35af1d469201898814fae24a3f67c (diff) |
Cleanup: use BLI_strnlen instead of strlen
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); \ } |