mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
fix a WRONG size argument to a memset() call found by Clang/LLVM
From /dev/humancontroller.
This commit is contained in:
parent
2db73231eb
commit
64c26ec338
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue