From 1b3beecb548cc2f28fdd4ecf92f3a976b84ad675 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 16 May 2006 00:25:18 +0000 Subject: * re.c (rb_reg_initialize): should not modify untainted objects in safe levels higher than 3. * re.c (rb_memcmp): type change from char* to const void*. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- intern.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern.h') diff --git a/intern.h b/intern.h index c38c00174a..cc39169073 100644 --- a/intern.h +++ b/intern.h @@ -353,9 +353,9 @@ VALUE rb_range_new _((VALUE, VALUE, int)); VALUE rb_range_beg_len _((VALUE, long*, long*, long, int)); VALUE rb_length_by_each _((VALUE)); /* re.c */ -int rb_memcmp _((char*,char*,long)); -int rb_memcicmp _((char*,char*,long)); -long rb_memsearch _((char*,long,char*,long)); +int rb_memcmp _((const void*,const void*,long)); +int rb_memcicmp _((const void*,const void*,long)); +long rb_memsearch _((const void*,long,const void*,long)); VALUE rb_reg_nth_defined _((int, VALUE)); VALUE rb_reg_nth_match _((int, VALUE)); VALUE rb_reg_last_match _((VALUE)); -- cgit v1.2.3