summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 82b69964a8..a07df5836f 100644
--- a/struct.c
+++ b/struct.c
@@ -358,7 +358,7 @@ inspect_struct(s)
rb_bug("non-initialized struct");
}
- str = rb_str_new2("#<");
+ str = rb_str_buf_new2("#<");
rb_str_cat2(str, cname);
rb_str_cat2(str, " ");
for (i=0; i<RSTRUCT(s)->len; i++) {