| Index: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc
|
| index 430e49f4ae26c04e315dbc4904f26af769117b5f..f7a622fd7467226e3963461f0610f0e73d8dabd8 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc
|
| @@ -147,15 +147,17 @@ Error Html5Fs::Rename(const Path& path, const Path& newpath) {
|
| if (error)
|
| return error;
|
|
|
| - const char* oldpath_full = GetFullPath(path).Join().c_str();
|
| + std::string oldpath_full = GetFullPath(path).Join();
|
| ScopedResource fileref_resource(
|
| - ppapi(), file_ref_iface_->Create(filesystem_resource_, oldpath_full));
|
| + ppapi(),
|
| + file_ref_iface_->Create(filesystem_resource_, oldpath_full.c_str()));
|
| if (!fileref_resource.pp_resource())
|
| return ENOENT;
|
|
|
| - const char* newpath_full = GetFullPath(newpath).Join().c_str();
|
| + std::string newpath_full = GetFullPath(newpath).Join();
|
| ScopedResource new_fileref_resource(
|
| - ppapi(), file_ref_iface_->Create(filesystem_resource_, newpath_full));
|
| + ppapi(),
|
| + file_ref_iface_->Create(filesystem_resource_, newpath_full.c_str()));
|
| if (!new_fileref_resource.pp_resource())
|
| return ENOENT;
|
|
|
|
|