From e4f1a557fd6f5189c28cd6663b90f8f6c6c1b686 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 16 Jan 2002 09:25:59 +0000 Subject: * st.c: primes should be primes. * eval.c (is_defined): method defined? check should honor protected too. * eval.c (block_pass): should not pass tainted block, if $SAFE > 0. * variable.c (rb_mod_remove_cvar): should pass the char*. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index 8b9dfaa1d..b44ea009e 100644 --- a/variable.c +++ b/variable.c @@ -1631,7 +1631,7 @@ rb_mod_remove_cvar(mod, name) VALUE val; if (!rb_is_class_id(id)) { - rb_name_error(id, "wrong class variable name %s", name); + rb_name_error(id, "wrong class variable name %s", rb_id2name(id)); } if (!OBJ_TAINTED(mod) && rb_safe_level() >= 4) rb_raise(rb_eSecurityError, "Insecure: can't remove class variable"); -- cgit