[PATCH] md5.c: fix a typo in the size argument of memset

Michal Terepeta michal.terepeta at gmail.com
Tue Apr 16 09:15:36 CEST 2013


---
 cbits/md5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cbits/md5.c b/cbits/md5.c
index 0570cbb..c928316 100644
--- a/cbits/md5.c
+++ b/cbits/md5.c
@@ -130,7 +130,7 @@ MD5Final(byte digest[16], struct MD5Context *ctx)
 
 	byteSwap(ctx->buf, 4);
 	memcpy(digest, ctx->buf, 16);
-	memset(ctx,0,sizeof(ctx));
+	memset(ctx, 0, sizeof(*ctx));
 }
 
 
-- 
1.8.2.1


--8t9RHnE3ZwKMSgU+--



More information about the ghc-devs mailing list