From 1c1257228f242477062842cb34e1b7397b69e3e4 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Thu, 25 Feb 2016 18:05:50 +0100 Subject: [PATCH] XSecurityGenerateAuthorization: Allocate enough space in values buffer --- src/XSecurity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XSecurity.c b/src/XSecurity.c index 73305a3..d0a68d2 100644 --- a/src/XSecurity.c +++ b/src/XSecurity.c @@ -217,7 +217,7 @@ XSecurityGenerateAuthorization( register xSecurityGenerateAuthorizationReq *req; xSecurityGenerateAuthorizationReply rep; Xauth *auth_return; - unsigned long values[3]; + unsigned long values[4]; unsigned long *value = values; unsigned int nvalues; -- 2.7.1