(Menu) change strncpy to strlcpy

This commit is contained in:
twinaphex 2018-08-16 10:15:51 +02:00
parent 75a388cd67
commit ba67623961

View File

@ -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);