Fix off-by-one buffer read access in format_track_path(). Part of #11947
commit84fccff17070ba78764ae200c4f38e0a53ff0ce7
authorThomas Jarosch <tomj@simonv.com>
Fri, 18 Feb 2011 21:21:50 +0000 (18 21:21 +0000)
committerThomas Jarosch <tomj@simonv.com>
Fri, 18 Feb 2011 21:21:50 +0000 (18 21:21 +0000)
tree1569ec290b455f3e93dde9e652b4ff94df3e2224
parentae32e1ef06b57e71e7130ce76082cb0877aaaca5
Fix off-by-one buffer read access in format_track_path(). Part of #11947

We need to check for "i < max" first.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29324 a1c6a512-1295-4272-9138-f99709370657
apps/playlist.c