freebsd-ports/deskutils/remind/files/patch-src_md5.c
Pietro Cerutti 4ac8cfecbc - Update to 3.1.13
- Convert to USES=tk
- Fix bug
  http://lists.roaringpenguin.com/pipermail/remind-fans/2014/003008.html

Approved by:	maintainer
2014-02-17 14:36:45 +00:00

11 lines
407 B
C

--- src/md5.c.orig 2014-02-14 17:34:29.000000000 +0100
+++ src/md5.c 2014-02-14 17:34:37.000000000 +0100
@@ -141,7 +141,7 @@
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(*ctx)); /* In case it's sensitive */
}
#ifndef ASM_MD5