topng: fix bug causing bogus double insertion of filter alg byte

This commit is contained in:
cinap_lenrek 2012-07-17 02:17:42 +02:00
parent aa67915776
commit 05c11fefe0

View file

@ -79,7 +79,7 @@ zread(void *va, void *buf, int n)
pixwid = z->pixwid;
b = buf;
e = b+n;
while(b+pixwid <= e){
while(b+pixwid < e){ /* one less for filter alg byte */
if(z->y >= z->dy)
break;
if(z->x == 0)