From ba676239619581076460d387fbec33cd94bb05de Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 16 Aug 2018 10:15:51 +0200 Subject: [PATCH] (Menu) change strncpy to strlcpy --- menu/cbs/menu_cbs_ok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 9de84c207b..51c2a5c6b2 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -993,7 +993,7 @@ static bool menu_content_playlist_load(playlist_t *playlist, size_t idx) path_check = (char *) calloc(strlen(path_tolower) + 1, sizeof(char)); - strncpy(path_check, path, strlen(path_tolower)); + strlcpy(path_check, path, strlen(path_tolower)); valid_path = path_is_valid(path_check);