comparison 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
comparison
equal deleted inserted replaced
4565:e2d46c5c7483 4566:40c833d951a1
874 return; 874 return;
875 } 875 }
876 876
877 /* Set the _NET_WM_ICON property */ 877 /* Set the _NET_WM_ICON property */
878 propsize = 2 + (icon->w * icon->h); 878 propsize = 2 + (icon->w * icon->h);
879 propdata = SDL_malloc(propsize * sizeof(Uint32)); 879 propdata = SDL_malloc(propsize * sizeof(long));
880 if (propdata) { 880 if (propdata) {
881 int x, y; 881 int x, y;
882 Uint32 *src; 882 Uint32 *src;
883 long *dst; 883 long *dst;
884 884