mruby-io/mruby_io_test.c: use -1 for length (means strlen(s))

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-03-24 15:19:54 +09:00
parent 4aae7be949
commit dd2950211c
+1 -1
View File
@@ -276,7 +276,7 @@ mrb_mruby_io_gem_test(mrb_state* mrb)
}
#endif
if (env_home) {
char *utf8 = mrb_utf8_from_locale(env_home, strlen(env_home));
char *utf8 = mrb_utf8_from_locale(env_home, -1);
mrb_value path = mrb_str_new_cstr(mrb, utf8);
#ifdef _WIN32
char *pathp = RSTRING_PTR(path);