From 8b152f3f823a837122ec6dde85f393b543b2ce07 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 1 Jun 2014 12:20:33 +0200 Subject: [PATCH] iax.md5: pass correct size to memset (identified by gcc) --- 3rdparty/iaxclient/lib/libiax2/src/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/iaxclient/lib/libiax2/src/md5.c b/3rdparty/iaxclient/lib/libiax2/src/md5.c index 401216ee2..b154f6c15 100644 --- a/3rdparty/iaxclient/lib/libiax2/src/md5.c +++ b/3rdparty/iaxclient/lib/libiax2/src/md5.c @@ -177,7 +177,7 @@ void MD5Final(uint8_t digest[16], struct MD5Context *ctx) MD5Transform(ctx->buf, (uint32_t *) ctx->in); byteReverse((uint8_t *) ctx->buf, 4); memcpy(digest, ctx->buf, 16); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } #ifndef ASM_MD5