summaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-21 05:02:16 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-21 05:02:16 +0000
commitb5204dd6bb8e0d4c400c9e4645abffa77c555360 (patch)
treec74946110d0a214afa18cf1654032faf86814b96 /lib/net
parentbabd01e2835921f4efe5109b343e32b2932f9ffa (diff)
downloadruby-b5204dd6bb8e0d4c400c9e4645abffa77c555360.tar.gz
ruby-b5204dd6bb8e0d4c400c9e4645abffa77c555360.tar.xz
ruby-b5204dd6bb8e0d4c400c9e4645abffa77c555360.zip
* lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-lis:40546]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/imap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 0a992844d..102a0184e 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -1266,7 +1266,7 @@ module Net
buf.concat(c)
i += 1
elsif (c & 0xe0) == 0xc0 &&
- inlen >= 2 &&
+ len >= 2 &&
(s[i + 1] & 0xc0) == 0x80
if c == 0xc0 || c == 0xc1
raise DataFormatError, format("non-shortest UTF-8 sequence (%02x)", c)