summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/marshal.c b/marshal.c
index a0dfb68b28..8bb8d2c984 100644
--- a/marshal.c
+++ b/marshal.c
@@ -106,7 +106,7 @@ w_byte(c, arg)
struct dump_arg *arg;
{
if (arg->fp) putc(c, arg->fp);
- else rb_str_cat(arg->str, &c, 1);
+ else rb_str_buf_cat(arg->str, &c, 1);
}
static void
@@ -540,7 +540,7 @@ marshal_dump(argc, argv)
}
else {
arg.fp = 0;
- port = rb_str_new(0, 0);
+ port = rb_str_buf_new(0);
arg.str = port;
}