summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--missing/explicit_bzero.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 86860d7192..1c55950924 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 2 07:41:08 2015 Eric Wong <e@80x24.org>
+
+ * missing/explicit_bzero.c (explicit_bzero): fixup r52839
+ for compilers with "weak" attribute
+
Wed Dec 2 06:47:25 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unused
diff --git a/missing/explicit_bzero.c b/missing/explicit_bzero.c
index 061e72f800..baa4624d13 100644
--- a/missing/explicit_bzero.c
+++ b/missing/explicit_bzero.c
@@ -49,7 +49,7 @@ ruby_explicit_bzero_hook_unused(void *buf, size_t len)
void
explicit_bzero(void *b, size_t len)
{
- memset(b, len);
+ memset(b, 0, len);
ruby_explicit_bzero_hook_unused(b, len);
}