[libbdplus-devel] Fixed memset size
anonymous
git at videolan.org
Thu Jan 30 10:33:11 CET 2014
libbdplus | branch: master | anonymous <anonymous at anonymous.org> | Thu Jan 30 11:19:21 2014 +0200| [453dfca5d639050cb0cf240fac0a3602f2d99f97] | committer: anonymous
Fixed memset size
> http://git.videolan.org/gitweb.cgi/libbdplus.git/?a=commit;h=453dfca5d639050cb0cf240fac0a3602f2d99f97
---
src/libbdplus/bdsvm/sha1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbdplus/bdsvm/sha1.c b/src/libbdplus/bdsvm/sha1.c
index 65b0450..981162f 100644
--- a/src/libbdplus/bdsvm/sha1.c
+++ b/src/libbdplus/bdsvm/sha1.c
@@ -187,7 +187,7 @@ static void SHA1_Transform(uint32_t state[5], const uint8_t buffer[64])
/* SHA1Init - Initialize new context */
void sha_SHA1_Init(SHA1_CTX* context)
{
- memset(context, 0, sizeof(context));
+ memset(context, 0, sizeof(*context));
/* SHA1 initialization constants */
context->state[0] = 0x67452301;
More information about the libbdplus-devel
mailing list