File stardict-3.0.3-wrong-memset.patch of Package stardict
Index: dict/src/lib/md5.c
===================================================================
--- dict/src/lib/md5.c.orig
+++ dict/src/lib/md5.c
@@ -163,7 +163,7 @@ void MD5Final(unsigned char digest[16],
MD5Transform(ctx->buf, (uint32 *) ctx->in);
byteReverse((unsigned char *) ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
+ memset(ctx, 0, sizeof(struct MD5Context)); /* In case it's sensitive */
}
#ifndef ASM_MD5