diff options
| author | Thomas Jarosch <tomj@simonv.com> | 2011-02-16 18:40:44 +0000 |
|---|---|---|
| committer | Thomas Jarosch <tomj@simonv.com> | 2011-02-16 18:40:44 +0000 |
| commit | 29e4a2d90d956470fe022c9da2dfc8b98d37fc0f (patch) | |
| tree | 790b2069551a48c6f6a515cae8368c41b22ae888 /apps/tagcache.c | |
| parent | efba46f9802bc33994efd645391c16990a20e17b (diff) | |
| download | rockbox-29e4a2d90d956470fe022c9da2dfc8b98d37fc0f.zip rockbox-29e4a2d90d956470fe022c9da2dfc8b98d37fc0f.tar.gz rockbox-29e4a2d90d956470fe022c9da2dfc8b98d37fc0f.tar.bz2 rockbox-29e4a2d90d956470fe022c9da2dfc8b98d37fc0f.tar.xz | |
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/tagcache.c')
| -rw-r--r-- | apps/tagcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 32b059b..6dfc88b 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 |