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
This commit is contained in:
Thomas Jarosch 2011-02-16 18:40:44 +00:00
parent efba46f980
commit 29e4a2d90d

View File

@ -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