diff src/video/x11/SDL_x11window.c @ 4566:40c833d951a1

Fixed memory corruption on AMD64
author Sam Lantinga <slouken@libsdl.org>
date Wed, 21 Jul 2010 21:53:41 -0700
parents 9e73d17638d3
children 844b5ef4b149
line wrap: on
line diff
--- 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;