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;
|
pixwid = z->pixwid;
|
||||||
b = buf;
|
b = buf;
|
||||||
e = b+n;
|
e = b+n;
|
||||||
while(b+pixwid <= e){
|
while(b+pixwid < e){ /* one less for filter alg byte */
|
||||||
if(z->y >= z->dy)
|
if(z->y >= z->dy)
|
||||||
break;
|
break;
|
||||||
if(z->x == 0)
|
if(z->x == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue