Fix off-by-one buffer read access in format_track_path(). Part of #11947
commitc75a34ba9fe49664b893d5f9fd0b4f6b09c87079
authorthomasjfox <thomasjfox@a1c6a512-1295-4272-9138-f99709370657>
Fri, 18 Feb 2011 21:21:50 +0000 (18 21:21 +0000)
committerthomasjfox <thomasjfox@a1c6a512-1295-4272-9138-f99709370657>
Fri, 18 Feb 2011 21:21:50 +0000 (18 21:21 +0000)
tree1569ec290b455f3e93dde9e652b4ff94df3e2224
parent7438ae6e89e1eea84abc7c20b90583723b2f6c3e
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