* ext/stringio/stringio.c (strio_truncate): fix typo. patched by

Nick Howard <ndh AT baroquebobcat.com>.
  https://github.com/ruby/ruby/pull/65

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-12-12 06:41:05 +00:00
parent e48c8be89b
commit 5c68e601e8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Dec 12 15:41:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/stringio/stringio.c (strio_truncate): fix typo. patched by
Nick Howard <ndh AT baroquebobcat.com>.
https://github.com/ruby/ruby/pull/65
Sun Dec 11 12:19:17 2011 Shugo Maeda <shugo@ruby-lang.org> Sun Dec 11 12:19:17 2011 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb: includes the sequence number of UID in a error * lib/net/imap.rb: includes the sequence number of UID in a error

View File

@ -1341,7 +1341,7 @@ strio_truncate(VALUE self, VALUE len)
long l = NUM2LONG(len); long l = NUM2LONG(len);
long plen = RSTRING_LEN(string); long plen = RSTRING_LEN(string);
if (l < 0) { if (l < 0) {
error_inval("negative legnth"); error_inval("negative length");
} }
rb_str_resize(string, l); rb_str_resize(string, l);
if (plen < l) { if (plen < l) {