summaryrefslogtreecommitdiff
path: root/ext/socket/ancdata.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/ancdata.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/ancdata.c')
-rw-r--r--ext/socket/ancdata.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c
index 9e93b04..880f79c 100644
--- a/ext/socket/ancdata.c
+++ b/ext/socket/ancdata.c
@@ -1066,9 +1066,8 @@ ancillary_inspect(VALUE self)
}
if (!inspected) {
- data = rb_str_dump(data);
rb_str_cat2(ret, " ");
- rb_str_append(ret, data);
+ rb_str_append(ret, rb_str_dump(data));
}
rb_str_cat2(ret, ">");