aboutsummaryrefslogtreecommitdiffstats
path: root/ext/socket/option.c
diff options
context:
space:
mode:
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 23afbe21d5..63bffb9f68 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, ">");