diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-21 05:05:01 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-21 05:05:01 +0000 |
| commit | 7c887899f5719a47262b6a679bf776dbfb8bbcca (patch) | |
| tree | 0db7129525e32bc6e78bdd46511cf90c65d038c4 /lib | |
| parent | f9696656a29fe452492651a0ae9a456a131e2fe9 (diff) | |
| download | ruby-7c887899f5719a47262b6a679bf776dbfb8bbcca.tar.gz ruby-7c887899f5719a47262b6a679bf776dbfb8bbcca.tar.xz ruby-7c887899f5719a47262b6a679bf776dbfb8bbcca.zip | |
* lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-lis:40546]
(backported from CVS HEAD)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/imap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 7886c66fd..640f2bd56 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) |
