Skip to content

Commit

Permalink
* error.c (syserr_initialize): use stringified object.
Browse files Browse the repository at this point in the history
  [ruby-dev:24768]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Nov 10, 2004
1 parent 7eaf299 commit 20beabc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Nov 11 01:52:52 2004 Nobuyoshi Nakada <[email protected]>

* error.c (syserr_initialize): use stringified object.
[ruby-dev:24768]

Wed Nov 10 22:49:01 2004 Yukihiro Matsumoto <[email protected]>

* lib/delegate.rb (SimpleDelegator::dup): wrong number of
Expand Down
2 changes: 1 addition & 1 deletion error.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ syserr_initialize(argc, argv, self)
if (!NIL_P(mesg)) {
VALUE str = mesg;
StringValue(str);
mesg = rb_str_new(0, strlen(err)+RSTRING(mesg)->len+3);
mesg = rb_str_new(0, strlen(err)+RSTRING(str)->len+3);
sprintf(RSTRING(mesg)->ptr, "%s - %.*s", err,
(int)RSTRING(str)->len, RSTRING(str)->ptr);
rb_str_resize(mesg, strlen(RSTRING(mesg)->ptr));
Expand Down

0 comments on commit 20beabc

Please sign in to comment.