summaryrefslogtreecommitdiff
path: root/ext/socket/option.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-04 03:39:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-04 03:39:36 +0000
commit622f45fccb5ebfdf684bb8428203307aa8d0cb89 (patch)
tree084bf17ae2ca5b087c6696e2e81287ffdd4e0865 /ext/socket/option.c
parentf1192452a9c8d07baf7b2cfee48330b1d0188490 (diff)
* ext/socket/option.c (sockopt_inspect): use rb_str_cat2 and
rb_str_append. * ext/socket/ancdata.c (ancillary_inspect): refined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/option.c')
-rw-r--r--ext/socket/option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index 23afbe2..63bffb9 100644
--- a/ext/socket/option.c
+++ b/ext/socket/option.c
@@ -633,8 +633,8 @@ sockopt_inspect(VALUE self)
}
if (!inspected) {
- data = rb_str_dump(data);
- rb_str_catf(ret, " %s", StringValueCStr(data));
+ rb_str_cat2(ret, " ");
+ rb_str_append(ret, rb_str_dump(data));
}
rb_str_cat2(ret, ">");