summaryrefslogtreecommitdiffhomepage
path: root/src/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/print.c b/src/print.c
index e081989d2..e6805edbf 100644
--- a/src/print.c
+++ b/src/print.c
@@ -20,10 +20,7 @@ printstr(mrb_state *mrb, mrb_value obj)
str = mrb_str_ptr(obj);
s = str->ptr;
len = str->len;
- while (len--) {
- putc(*s, stdout);
- s++;
- }
+ fwrite(s, len, 1, stdout);
}
}