Commit 106aea6e authored by Sam Lantinga's avatar Sam Lantinga

Fixed memory corruption on AMD64

parent 5d2b7ba6
...@@ -876,7 +876,7 @@ X11_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon) ...@@ -876,7 +876,7 @@ X11_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
/* Set the _NET_WM_ICON property */ /* Set the _NET_WM_ICON property */
propsize = 2 + (icon->w * icon->h); propsize = 2 + (icon->w * icon->h);
propdata = SDL_malloc(propsize * sizeof(Uint32)); propdata = SDL_malloc(propsize * sizeof(long));
if (propdata) { if (propdata) {
int x, y; int x, y;
Uint32 *src; Uint32 *src;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment