aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ports/SkOSFile_posix.cpp2
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);