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
This commit is contained in:
Amitesh Singh 2015-10-01 16:20:23 -04:00 committed by Chris Michael
parent 982d4390f8
commit c27ecb89fb
1 changed files with 1 additions and 1 deletions

View File

@ -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 */