summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-04 23:43:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-04 23:43:40 +0000
commitb63996ba915ca494b4aba4090d8291bc89de597d (patch)
tree52d716a8fcc63780eaadf6aeb20d3c0cdb316315 /lib
parent0b01f35f65d74bc0569d8f411c91b795fc3c7350 (diff)
downloadruby-b63996ba915ca494b4aba4090d8291bc89de597d.tar.gz
ruby-b63996ba915ca494b4aba4090d8291bc89de597d.tar.xz
ruby-b63996ba915ca494b4aba4090d8291bc89de597d.zip
* string.c (str_gsub): should have removed rb_str_unlocktmp(str).
[ruby-dev:24708] * ext/socket/socket.c (s_recvfrom): buffer modification check. [ruby-dev:24708] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/getopts.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getopts.rb b/lib/getopts.rb
index 924ba5b24..f63bbfef6 100644
--- a/lib/getopts.rb
+++ b/lib/getopts.rb
@@ -15,7 +15,7 @@
# rewritten by Akinori MUSHA <knu@ruby-lang.org>
#
-warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: getopts is deprecated after Ruby 1.8.1; use optparse instead"
+warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: getopts is deprecated after Ruby 1.8.1; use optparse instead" if caller[0]
$RCS_ID=%q$Header$