diff options
author | Amitesh Singh <amitesh.sh@samsung.com> | 2015-10-01 16:20:23 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-10-01 16:20:23 -0400 |
commit | c27ecb89fbbcb93ca23221e641084524398afa9f (patch) | |
tree | 4424a459ae2b027fde6f41de5c3c883377c2e51d | |
parent | 982d4390f817e0c798e4d04247b7546fa61da742 (diff) | |
download | enlightenment-c27ecb89fbbcb93ca23221e641084524398afa9f.tar.gz |
md5: fix wrong sizeof argument (SIZEOF_MISMATCH)
Summary: fixes CID: 222382
Reviewers: raster, zmike, cedric, devilhorns
Reviewed By: devilhorns
Subscribers: cedric, seoz, sachin.dev
Differential Revision: https://phab.enlightenment.org/D3125
-rw-r--r-- | src/modules/everything/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/everything/md5.c b/src/modules/everything/md5.c index 3e5185c002..fdc44cdf83 100644 --- a/src/modules/everything/md5.c +++ b/src/modules/everything/md5.c @@ -156,7 +156,7 @@ MD5Final(unsigned char digest[16], MD5_CTX *ctx) MD5Transform(ctx->buf, (uint32_t *)ctx->in); byteReverse((unsigned char *)ctx->buf, 4); memcpy(digest, ctx->buf, 16); - memset((char *)ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset((char *)ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } /* The four core functions - F1 is optimized somewhat */ |