rename mrb_str_new2 -> mrb_str_new_cstr

This commit is contained in:
Akira Yumiyama
2013-03-13 22:28:06 +09:00
parent 5e296b24f3
commit 104b69d943
+1 -1
View File
@@ -160,7 +160,7 @@ mrb_dir_read(mrb_state *mrb, mrb_value self)
}
dp = readdir(mdir->dir);
if (dp != NULL) {
return mrb_str_new2(mrb, dp->d_name);
return mrb_str_new_cstr(mrb, dp->d_name);
} else {
return mrb_nil_value();
}