summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-07-25 18:33:10 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-07-25 18:34:53 +0200
commit2fb6b2b4588ec1e22ca1043eaa12695ade9d7bf9 (patch)
tree44c7bdaed9d7c294a2e2c46e7ff7b39d6a3ab2d0 /apps/tree.c
parent2eeb338e906d0873c6d5386adfbaf82348edd04c (diff)
downloadrockbox-2fb6b2b4588ec1e22ca1043eaa12695ade9d7bf9.tar.gz
rockbox-2fb6b2b4588ec1e22ca1043eaa12695ade9d7bf9.tar.bz2
rockbox-2fb6b2b4588ec1e22ca1043eaa12695ade9d7bf9.zip
Fix truncation warning playlist.c, tree.c
Change-Id: I0c62f06fea3ccb55efa21b719a44a263dedc32e2
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 8efccf5549..e03a494a54 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -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);