diff --git a/menu/menu_explore.c b/menu/menu_explore.c index 15ab6e63a9..7c3fa48504 100644 --- a/menu/menu_explore.c +++ b/menu/menu_explore.c @@ -1009,8 +1009,8 @@ unsigned menu_displaylist_explore(file_list_t *list) if (stack_top[i].type == cat + EXPLORE_TYPE_FIRSTCATEGORY) goto SKIP_EXPLORE_BY_CATEGORY; - tmplen = snprintf(tmp, sizeof(tmp), - msg_hash_to_str(explore_by_info[cat].by_enum)); + tmplen = strlcpy(tmp, + msg_hash_to_str(explore_by_info[cat].by_enum), sizeof(tmp)); if (is_top && tmplen >= 0 && tmplen < sizeof(tmp) - 5) {