X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=hmac.c;h=e740632df4884cd0789cbfbc80e04962eff00a5e;hb=4513875d934ceed8f004bf62a1248a0afcb1da76;hp=a422c699843356fd0cddb1fb3d3e832b3453c588;hpb=14e4bacc03fe5bd988e198cf97a1b09254e43c58;p=xonotic%2Fdarkplaces.git 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) {