Commit e71a6a7b authored by 窪山 翔士's avatar 窪山 翔士

fixed mruby-io so that the test passes on cygwin

parent 9c0426c9
......@@ -200,6 +200,7 @@ mrb_file_basename(mrb_state *mrb, mrb_value klass)
if ((bname = basename(path)) == NULL) {
mrb_sys_fail(mrb, "basename");
}
if (strncmp(bname, "//", 3) == 0) bname[1] = '\0'; /* patch for Cygwin */
return mrb_str_new_cstr(mrb, bname);
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment