topng: fix bug causing bogus double insertion of filter alg byte
This commit is contained in:
parent
aa67915776
commit
05c11fefe0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue