forked from len0rd/rockbox
Fix truncation warning playlist.c, tree.c
Change-Id: I0c62f06fea3ccb55efa21b719a44a263dedc32e2
This commit is contained in:
parent
2eeb338e90
commit
2fb6b2b458
2 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue