diff options
Diffstat (limited to 'ext/socket/ancdata.c')
-rw-r--r-- | ext/socket/ancdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c index 9a31cc41e2..ed242db89d 100644 --- a/ext/socket/ancdata.c +++ b/ext/socket/ancdata.c @@ -207,7 +207,7 @@ ancillary_s_unix_rights(int argc, VALUE *argv, VALUE klass) str = rb_str_buf_new(sizeof(int) * argc); for (i = 0 ; i < argc; i++) { - VALUE obj = RARRAY_PTR(ary)[i]; + VALUE obj = RARRAY_CONST_PTR(ary)[i]; rb_io_t *fptr; int fd; GetOpenFile(obj, fptr); |