]> git.saurik.com Git - ldid.git/commitdiff
Avoid dirent::d_namlen (not there on Linux glibc).
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 28 Sep 2015 09:48:10 +0000 (02:48 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 28 Sep 2015 09:48:10 +0000 (02:48 -0700)
ldid.cpp

index 21eb77dfba877759fb2e358b489331a82045d98a..ffc2821829159ea176dc85286c2e23dacb4aadc4 100644 (file)
--- 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."))