diff options
Diffstat (limited to 'src/shrpx_mruby.cc')
-rw-r--r-- | src/shrpx_mruby.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shrpx_mruby.cc b/src/shrpx_mruby.cc index 4d412ef..cfa10fd 100644 --- a/src/shrpx_mruby.cc +++ b/src/shrpx_mruby.cc @@ -144,7 +144,7 @@ RProc *compile(mrb_state *mrb, const StringRef &filename) { return nullptr; } - auto infile = fopen(filename.c_str(), "rb"); + auto infile = fopen(filename.data(), "rb"); if (infile == nullptr) { LOG(ERROR) << "Could not open mruby file " << filename; return nullptr; |