1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/tk/lib/multi-tk.rb: freeze ip_name for security reason.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2006-07-28 21:14:30 +00:00
parent 2a0b4cc13c
commit 567ded6073
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Jul 29 06:12:06 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: freeze ip_name for security reason.
Fri Jul 28 17:18:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Jul 28 17:18:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/curses/curses.c (NUM2CH, CH2FIX): use single char strings. * ext/curses/curses.c (NUM2CH, CH2FIX): use single char strings.

View file

@ -949,7 +949,7 @@ class MultiTkIp
def _create_slave_ip_name def _create_slave_ip_name
name = @@SLAVE_IP_ID.join('') name = @@SLAVE_IP_ID.join('')
@@SLAVE_IP_ID[1].succ! @@SLAVE_IP_ID[1].succ!
name name.freeze
end end
private :_create_slave_ip_name private :_create_slave_ip_name