mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
[ruby-core:57599] [Bug #8978]. Thanks mame! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c4bf5e0c98
commit
2ee916752c
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jan 29 03:49:36 2014 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
|
||||
[ruby-core:57599] [Bug #8978]. Thanks mame!
|
||||
|
||||
Wed Jan 29 03:36:42 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* doc/contributing.rdoc: allow/encourage other git hosts
|
||||
|
|
|
@ -234,7 +234,7 @@ initialize(int rbargc, VALUE argv[], VALUE self)
|
|||
#else
|
||||
result = ffi_prep_closure(pcl, cif, callback, (void *)self);
|
||||
cl->code = (void *)pcl;
|
||||
i = mprotect(pcl, sizeof(pcl), PROT_READ | PROT_EXEC);
|
||||
i = mprotect(pcl, sizeof(*pcl), PROT_READ | PROT_EXEC);
|
||||
if (i) {
|
||||
rb_sys_fail("mprotect");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue