Fixed compression bug

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4964 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-07-27 19:19:52 +00:00
parent 70de4ec4c9
commit fa1afb72c9

View file

@ -132,7 +132,7 @@ static void putpacket (char *buffer)
/* Do run length encoding */
for (runlen = 0; runlen < 100; runlen ++)
{
if (src[0] != src[runlen])
if (src[0] != src[runlen] || runlen == 99)
{
if (runlen > 3)
{