From 3498a7626b0b225ca11df5f441608704ca369e7c 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: http://svn.ruby-lang.org/repos/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 6c06c2b6b..141c1873d 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