# HG changeset patch # User Sam Lantinga # Date 1258357148 0 # Node ID 0538362b98d32967b1709ffbd9752da0b30c54ad # Parent 9f62f47d989b0c25be740751a92cec18e045d7db Fixed memory corruption in SW_RenderReadPixels() diff -r 9f62f47d989b -r 0538362b98d3 src/video/SDL_surface.c --- a/src/video/SDL_surface.c Mon Nov 16 07:13:07 2009 +0000 +++ b/src/video/SDL_surface.c Mon Nov 16 07:39:08 2009 +0000 @@ -961,7 +961,7 @@ rect.x = 0; rect.y = 0; rect.w = width; - rect.h = width; + rect.h = height; return SDL_LowerBlit(&src_surface, &rect, &dst_surface, &rect); }