Fixed memory corruption on AMD64
authorSam Lantinga <slouken@libsdl.org>
Wed, 21 Jul 2010 21:53:41 -0700
changeset 4566 40c833d951a1
parent 4565 e2d46c5c7483
child 4567 1d7ea8724f4a
Fixed memory corruption on AMD64
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;