# HG changeset patch # User Sam Lantinga # Date 1279774421 25200 # Node ID 40c833d951a135185d8024309c8b29f26c8a69f5 # Parent e2d46c5c74833c3ff8f1e784cb736abbb2564b6f Fixed memory corruption on AMD64 diff -r e2d46c5c7483 -r 40c833d951a1 src/video/x11/SDL_x11window.c --- a/src/video/x11/SDL_x11window.c Wed Jul 21 21:47:12 2010 -0700 +++ b/src/video/x11/SDL_x11window.c Wed Jul 21 21:53:41 2010 -0700 @@ -876,7 +876,7 @@ /* Set the _NET_WM_ICON property */ propsize = 2 + (icon->w * icon->h); - propdata = SDL_malloc(propsize * sizeof(Uint32)); + propdata = SDL_malloc(propsize * sizeof(long)); if (propdata) { int x, y; Uint32 *src;