ref: a6228c698ceea4065c799bb9b892d8f9939a2f3e
parent: 2819f04c644488f2aaea8562d313c2b8465bbc2d
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Jul 16 22:17:42 EDT 2012
topng: fix bug causing bogus double insertion of filter alg byte
--- a/sys/src/cmd/jpg/writepng.c
+++ b/sys/src/cmd/jpg/writepng.c
@@ -79,7 +79,7 @@
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)
--
⑨