Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/md5.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-11-20 01:50:53 +0400
committerJohn Crispin <blogic@openwrt.org>2013-11-20 01:53:18 +0400
commitf100acef37bd562218b25d1a9fbe1ece1ef57438 (patch)
tree935d9f7a5c407f3cd9ec3fc3d04458269d58b97f /md5.c
parente8b26ce48d9a423507d2cb6b98094fe5adb1ed9c (diff)
fix memset call in md5.c
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'md5.c')
-rw-r--r--md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/md5.c b/md5.c
index 90bd1ab..f8d490f 100644
--- a/md5.c
+++ b/md5.c
@@ -12,7 +12,7 @@
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
-#include <libubox/blob.h> /* TODO: better include for bswap_32 compat */
+#include "blob.h" /* TODO: better include for bswap_32 compat */
#include <sys/types.h>
#include <sys/stat.h>
@@ -255,7 +255,7 @@ int md5sum(char *file, uint32_t *md5)
int len, fd;
int ret = 0;
- memset(md5, 0, sizeof(md5));
+ memset(md5, 0, sizeof(*md5) * 4);
fd = open(file, O_RDONLY);
if (fd < 0)