summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-01 22:42:00 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-01 22:42:00 +0000
commitfd8f7848b4d7a0280cb538745c89811df4022198 (patch)
tree8be4510842bf65b9fa3f1a2a7bdc0dbbd555db07 /missing
parent93ce51b00b191062aba3b3e26b6284189d9b7781 (diff)
downloadruby-fd8f7848b4d7a0280cb538745c89811df4022198.tar.gz
missing/explicit_bzero.c (explicit_bzero): fixup r52839
...for compilers with "weak" attribute. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/explicit_bzero.c2
1 files changed, 1 insertions, 1 deletions
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);
}