summaryrefslogtreecommitdiff
path: root/ext/socket/ancdata.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-04 02:51:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-04 02:51:46 +0000
commitf1192452a9c8d07baf7b2cfee48330b1d0188490 (patch)
tree8a7c8422b5f3ebb14e9b578043e87ba0076e57dd /ext/socket/ancdata.c
parent57c1406697134de5e6fe11f19d478472b6ac5323 (diff)
* ext/socket/ancdata.c (ancillary_inspect): use rb_str_cat2 and
rb_str_append. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/ancdata.c')
-rw-r--r--ext/socket/ancdata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c
index 4d299ec..9e93b04 100644
--- a/ext/socket/ancdata.c
+++ b/ext/socket/ancdata.c
@@ -1067,7 +1067,8 @@ ancillary_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, data);
}
rb_str_cat2(ret, ">");