summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-16 18:40:44 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-16 18:40:44 +0000
commit29e4a2d90d956470fe022c9da2dfc8b98d37fc0f (patch)
tree790b2069551a48c6f6a515cae8368c41b22ae888 /apps
parentefba46f9802bc33994efd645391c16990a20e17b (diff)
downloadrockbox-29e4a2d90d956470fe022c9da2dfc8b98d37fc0f.tar.gz
rockbox-29e4a2d90d956470fe022c9da2dfc8b98d37fc0f.tar.bz2
rockbox-29e4a2d90d956470fe022c9da2dfc8b98d37fc0f.zip
Fix buffer size used for realpath() call
Thanks to kugel for pointing this out. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29320 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 32b059bc43..6dfc88bba4 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -445,7 +445,7 @@ static long find_entry_disk(const char *filename_raw, bool localfd)
const char *filename = filename_raw;
#ifdef APPLICATION
- char pathbuf[MAX_PATH];
+ char pathbuf[PATH_MAX]; /* Note: Don't use MAX_PATH here, it's too small */
if (realpath(filename, pathbuf) == pathbuf)
filename = pathbuf;
#endif