summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-06-19 14:53:40 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:33:26 +0000
commite02070ca602612066277e8544efa7a4f4570ac3d (patch)
tree23722afabb968ccc3e99776a906fe7bedce56bcf /src
parentf388963837524b635d04da9345f711cae26206b4 (diff)
fix a WRONG size argument to a memset() call found by Clang/LLVM
From /dev/humancontroller.
Diffstat (limited to 'src')
-rw-r--r--src/qcommon/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/md5.c b/src/qcommon/md5.c
index 5cf12bb3..994083fc 100644
--- a/src/qcommon/md5.c
+++ b/src/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 */
}