Fixed memory corruption on AMD64

This commit is contained in:
Sam Lantinga
2010-07-21 21:53:41 -07:00
parent bb3f9614ec
commit 0d26fd147e

View File

@@ -876,7 +876,7 @@ X11_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
/* 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;