From 9ef8a2a5db011a0071a4232b368b1cc4d2346351 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 15 Jul 2003 07:35:14 +0000 Subject: * lib/matrix.rb: remove elements conversion to_f, to_i, to_r. * lib/cgi/session/pstore.rb: add new file. * process.c (proc_getgroups, proc_setmaxgroups): fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index 6c06c2b6bb..141c1873da 100644 --- a/process.c +++ b/process.c @@ -1231,13 +1231,13 @@ proc_getgroups(VALUE obj) { #ifdef HAVE_GETGROUPS VALUE ary; - size_t ngroups = 32; + size_t ngroups; gid_t *groups; int i; groups = ALLOCA_N(gid_t, maxgroups); - ngroups = getgroups(ngroups, groups); + ngroups = getgroups(maxgroups, groups); if (ngroups == -1) rb_sys_fail(0); @@ -1312,7 +1312,7 @@ static VALUE proc_setmaxgroups(obj, val) VALUE obj; { - size_t ngroups = INT2FIX(val); + size_t ngroups = FIX2INT(val); if (ngroups > 4096) ngroups = 4096; -- cgit v1.2.3