[前][次][番号順一覧][スレッド一覧]

ruby-changes:40762

From: normal <ko1@a...>
Date: Wed, 2 Dec 2015 07:42:24 +0900 (JST)
Subject: [ruby-changes:40762] normal:r52841 (trunk): missing/explicit_bzero.c (explicit_bzero): fixup r52839

normal	2015-12-02 07:42:00 +0900 (Wed, 02 Dec 2015)

  New Revision: 52841

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52841

  Log:
    missing/explicit_bzero.c (explicit_bzero): fixup r52839
    
    ...for compilers with "weak" attribute.

  Modified files:
    trunk/ChangeLog
    trunk/missing/explicit_bzero.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52840)
+++ ChangeLog	(revision 52841)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec  2 07:41:08 2015  Eric Wong  <e@8...>
+
+	* missing/explicit_bzero.c (explicit_bzero): fixup r52839
+	  for compilers with "weak" attribute
+
 Wed Dec  2 06:47:25 2015  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unused
Index: missing/explicit_bzero.c
===================================================================
--- missing/explicit_bzero.c	(revision 52840)
+++ missing/explicit_bzero.c	(revision 52841)
@@ -49,7 +49,7 @@ ruby_explicit_bzero_hook_unused(void *bu https://github.com/ruby/ruby/blob/trunk/missing/explicit_bzero.c#L49
 void
 explicit_bzero(void *b, size_t len)
 {
-    memset(b, len);
+    memset(b, 0, len);
     ruby_explicit_bzero_hook_unused(b, len);
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]