]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - hmac.c
Restore old video init behavior, pending better solution. Fixes Steel Storm crash...
[xonotic/darkplaces.git] / hmac.c
diff --git a/hmac.c b/hmac.c
index a422c699843356fd0cddb1fb3d3e832b3453c588..83f062b969939f385a61f6d93972e949bcd3b70a 100644 (file)
--- a/hmac.c
+++ b/hmac.c
@@ -1,7 +1,7 @@
 #include "quakedef.h"
 #include "hmac.h"
 
-qboolean hmac(
+qbool hmac(
        hashfunc_t hfunc, int hlen, int hblock,
        unsigned char *out,
        const unsigned char *in, int n,
@@ -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)
        {