From 5fc0110d69c51b975d78383aa63838b25922fd53 Mon Sep 17 00:00:00 2001 From: thomasjfox Date: Wed, 16 Feb 2011 18:40:44 +0000 Subject: [PATCH] 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 --- apps/tagcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT