Fixed an off-by-one bug that caused the nasty crash on archos, and wrong limit check.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12395 a1c6a512-1295-4272-9138-f99709370657
1 file changed