summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-09-28 02:48:10 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-09-28 02:48:10 -0700
commit261b99639c4ab7c53058a3a1a5906e566a5c5210 (patch)
treee93d4a9bccd97edfb718c3ba2312f82e004f06fd
parent4527f2afbc88950cbb7d714c2196fcad8596ce74 (diff)
downloadldid-261b99639c4ab7c53058a3a1a5906e566a5c5210.tar.gz
ldid-261b99639c4ab7c53058a3a1a5906e566a5c5210.tar.zst
ldid-261b99639c4ab7c53058a3a1a5906e566a5c5210.zip
Avoid dirent::d_namlen (not there on Linux glibc).
-rw-r--r--ldid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldid.cpp b/ldid.cpp
index 21eb77d..ffc2821 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1572,7 +1572,7 @@ void DiskFolder::Find(const std::string &root, const std::string &base, const Fu
_scope({ _syscall(closedir(dir)); });
while (auto child = readdir(dir)) {
- std::string name(child->d_name, child->d_namlen);
+ std::string name(child->d_name);
if (name == "." || name == "..")
continue;
if (Starts(name, ".ldid."))