diff options
Diffstat (limited to 'src/XSecurity.c')
-rw-r--r-- | src/XSecurity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XSecurity.c b/src/XSecurity.c index 56b37fc..2554502 100644 --- a/src/XSecurity.c +++ b/src/XSecurity.c @@ -283,7 +283,7 @@ XSecurityGenerateAuthorization( * XSecurityAllocXauth; in both cases, you just free one pointer. */ - if ((auth_return = (Xauth *)Xcalloc(1, + if ((auth_return = Xcalloc(1, (sizeof(Xauth) + auth_in->name_length + rep.dataLength)))) { auth_return->data_length = rep.dataLength; |