]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix C++ compile error
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 30 Oct 2011 02:55:30 +0000 (02:55 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 31 Oct 2011 08:09:17 +0000 (09:09 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11489 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e77221a1fb23188d552ae92dc25cc06ff733cbaa

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)
        {