changeset 4566:40c833d951a1

Fixed memory corruption on AMD64
author Sam Lantinga <slouken@libsdl.org>
date Wed, 21 Jul 2010 21:53:41 -0700
parents e2d46c5c7483
children 1d7ea8724f4a
files src/video/x11/SDL_x11window.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;