diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 6ea5638b8f0..a7995dd8a90 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -1033,7 +1033,7 @@ bool filelist_islibrary(struct FileList *filelist, char *dir, char *group) static int groupname_to_code(const char *group) { - char buf[32]; + char buf[BLO_GROUP_MAX]; char *lslash; BLI_strncpy(buf, group, sizeof(buf)); @@ -1041,7 +1041,7 @@ static int groupname_to_code(const char *group) if (lslash) lslash[0] = '\0'; - return BKE_idcode_from_name(buf); + return buf[0] ? BKE_idcode_from_name(buf) : 0; } void filelist_from_library(struct FileList *filelist) |