Skip to content

Commit c80c341

Browse files
committedJul 5, 2017
x11: pass a long to XChangeProperty, not an int.
The Xlib documentation demands that 32-bit values here be passed in a long, even when long itself isn't a 32-bit value. Otherwise libx11 might read memory incorrectly. Fixes Bugzilla #3692.
1 parent b36755a commit c80c341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/video/x11/SDL_x11window.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
375375
Atom _NET_WM_WINDOW_TYPE;
376376
Atom wintype;
377377
const char *wintype_name = NULL;
378-
int compositor = 1;
378+
long compositor = 1;
379379
Atom _NET_WM_PID;
380380
Atom XdndAware, xdnd_version = 5;
381381
long fevent = 0;

0 commit comments

Comments
 (0)