diff options
author | Brian Osman <brianosman@google.com> | 2018-01-16 11:08:53 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-16 17:07:49 +0000 |
commit | d5e4d85843f92921660e704333df8afe8c582dc8 (patch) | |
tree | 1e115c1a9dab31a73dff3f48b98bc2b1eb222346 /src/ports/SkOSFile_posix.cpp | |
parent | be1099fb05e5c6250226ab8102f75a0d5432a95b (diff) |
Fix file loading from bundles on iOS
Bug: skia:
Change-Id: I9b9a7dcbdeb1630794b04d2a5a00d5f496aae85d
Reviewed-on: https://skia-review.googlesource.com/94963
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/ports/SkOSFile_posix.cpp')
-rw-r--r-- | src/ports/SkOSFile_posix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkOSFile_posix.cpp b/src/ports/SkOSFile_posix.cpp index 1985607ac7..9a1c30aa28 100644 --- a/src/ports/SkOSFile_posix.cpp +++ b/src/ports/SkOSFile_posix.cpp @@ -157,7 +157,7 @@ void SkOSFile::Iter::reset(const char path[], const char suffix[]) { #ifdef SK_BUILD_FOR_IOS // check bundle for directory if (!self.fDIR && ios_get_path_in_bundle(path, &self.fPath)) { - self.fDIR = ::opendir(path); + self.fDIR = ::opendir(self.fPath.c_str()); } #endif self.fSuffix.set(suffix); |