From 64c26ec3383ec7db992711627f0285a8e4614a46 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 19 Jun 2012 14:53:40 +0000 Subject: [PATCH] fix a WRONG size argument to a memset() call found by Clang/LLVM From /dev/humancontroller. --- code/qcommon/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/md5.c b/code/qcommon/md5.c index 5cf12bb3..994083fc 100644 --- a/code/qcommon/md5.c +++ b/code/qcommon/md5.c @@ -253,7 +253,7 @@ static void MD5Final(struct MD5Context *ctx, unsigned char *digest) if (digest!=NULL) 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 */ }