summaryrefslogtreecommitdiffhomepage
path: root/src/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index e6873913b..e27a723dc 100644
--- a/src/print.c
+++ b/src/print.c
@@ -17,7 +17,7 @@ printstr(mrb_state *mrb, mrb_value obj)
if (mrb_type(obj) == MRB_TT_STRING) {
str = mrb_str_ptr(obj);
- s = str->buf;
+ s = str->ptr;
len = str->len;
while (len--) {
putc(*s, stdout);