]> 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)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 30 Oct 2011 02:55:30 +0000 (02:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11489 d7cf8633-e32d-0410-b094-e92efae38249

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