1
0
Fork 0
forked from len0rd/rockbox

Fix truncation warning playlist.c, tree.c

Change-Id: I0c62f06fea3ccb55efa21b719a44a263dedc32e2
This commit is contained in:
William Wilgus 2018-07-25 18:33:10 +02:00
parent 2eeb338e90
commit 2fb6b2b458
2 changed files with 5 additions and 4 deletions

View file

@ -908,7 +908,7 @@ static int dirbrowse(void)
bool create_playlist(void)
{
char filename[MAX_PATH];
char filename[MAX_PATH + 16]; /* add enough space for extension */
if (tc.currdir[1])
snprintf(filename, sizeof filename, "%s.m3u8", tc.currdir);