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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Michal Terepeta
---
 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+--