]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - hmac.c
Fix engine not starting on Windows if linked against SDL > 2.0.5
[xonotic/darkplaces.git] / hmac.c
diff --git a/hmac.c b/hmac.c
index a422c699843356fd0cddb1fb3d3e832b3453c588..e740632df4884cd0789cbfbc80e04962eff00a5e 100644 (file)
--- a/hmac.c
+++ b/hmac.c
@@ -21,7 +21,7 @@ qboolean hmac(
        if(sizeof(k_xor_ipad) < (size_t) hlen)
                return false;
 
-       catbuf = Mem_Alloc(tempmempool, (size_t) hblock + max((size_t) hlen, (size_t) n));
+       catbuf = (unsigned char *)Mem_Alloc(tempmempool, (size_t) hblock + max((size_t) hlen, (size_t) n));
 
        if(k > hblock)
        {