From 5105216380d9fe01735151e8b7239ff3dfc79400 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 3 Aug 2020 00:51:29 +0200 Subject: [PATCH] (Android) Fix build --- menu/menu_explore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {