diff options
author | Zack Middleton <zturtleman@gmail.com> | 2012-06-19 14:53:40 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 20:33:26 +0000 |
commit | e02070ca602612066277e8544efa7a4f4570ac3d (patch) | |
tree | 23722afabb968ccc3e99776a906fe7bedce56bcf /src | |
parent | f388963837524b635d04da9345f711cae26206b4 (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.c | 2 |
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 */ } |