From 6504d605a0be07c884094d200c0b88db12345695 Mon Sep 17 00:00:00 2001 From: toddouska Date: Tue, 1 Apr 2014 14:02:36 -0700 Subject: [PATCH] fix des malloc cast --- ctaocrypt/src/des3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaocrypt/src/des3.c b/ctaocrypt/src/des3.c index e69ef0723..dbf260f4d 100644 --- a/ctaocrypt/src/des3.c +++ b/ctaocrypt/src/des3.c @@ -988,7 +988,7 @@ static INLINE void FPERM(word32* left, word32* right) static int DesSetKey(const byte* key, int dir, word32* out) { - byte* buffer = XMALLOC(56+56+8, NULL, DYNAMIC_TYPE_TMP_BUFFER); + byte* buffer = (byte*)XMALLOC(56+56+8, NULL, DYNAMIC_TYPE_TMP_BUFFER); if (!buffer) { return MEMORY_E;