From 86a495432de7c68901f25d805bfbe17056d8089e Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 30 Oct 2011 02:55:30 +0000 Subject: [PATCH] fix C++ compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11489 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=e77221a1fb23188d552ae92dc25cc06ff733cbaa --- hmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmac.c b/hmac.c index a422c699..e740632d 100644 --- 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) { -- 2.39.2