# HG changeset patch # User michaelni # Date 1049463367 0 # Node ID 54384dc71fe7297a99c1929582270ac7ce6c3355 # Parent f0c39139426d3db6c5d89af47b693b8e0402d65e fixing mem corruption diff -r f0c39139426d -r 54384dc71fe7 imgconvert.c --- a/imgconvert.c Wed Apr 02 10:18:29 2003 +0000 +++ b/imgconvert.c Fri Apr 04 13:36:07 2003 +0000 @@ -364,6 +364,8 @@ int w, c; uint8_t *s1, *s2, *d; + width>>=1; + for(;height > 0; height--) { s1 = src; s2 = src + src_wrap;