]> git.saurik.com Git - ldid.git/commitdiff
Switched to minimal's strndup.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 6 Jul 2008 21:06:40 +0000 (21:06 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 6 Jul 2008 21:06:40 +0000 (21:06 +0000)
ldid.cpp

index 3bf2f770eb76ee96bf239df14e4ce37fb2b89356..db07317ca8b1a5cac31b82954e1c4b5822fe9351 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -36,6 +36,7 @@
 */
 
 #include "minimal/stdlib.h"
 */
 
 #include "minimal/stdlib.h"
+#include "minimal/string.h"
 #include "minimal/mapping.h"
 
 #include "sha1.h"
 #include "minimal/mapping.h"
 
 #include "sha1.h"
@@ -359,7 +360,7 @@ int main(int argc, const char *argv[]) {
         mode_t mode = 0;
 
         if (base != NULL)
         mode_t mode = 0;
 
         if (base != NULL)
-            dir = strndup(path, base++ - path + 1);
+            dir = strndup_(path, base++ - path + 1);
         else {
             dir = strdup("");
             base = path;
         else {
             dir = strdup("");
             base = path;