X11: Fix read past top of stack on 64-bit

Fixes #951.
This commit is contained in:
Camilla Löwy
2017-02-23 03:26:55 +01:00
parent 463930761b
commit 5352e2caa0
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -571,7 +571,7 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
// Declare our PID
{
const pid_t pid = getpid();
const long pid = getpid();
XChangeProperty(_glfw.x11.display, window->x11.handle,
_glfw.x11.NET_WM_PID, XA_CARDINAL, 32,