diff options
author | Jay Freeman <saurik@saurik.com> | 2008-07-06 21:06:40 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-07-06 21:06:40 +0000 |
commit | af30c7d1c5f8d25823d475dc70c90235597783c2 (patch) | |
tree | ad07317ee302165076673b99a623967a72cc402b /util/ldid.cpp | |
parent | 639450a26a34baa287a98dc618dd2b90fe2343db (diff) |
Switched to minimal's strndup.
git-svn-id: http://svn.telesphoreo.org/trunk@354 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'util/ldid.cpp')
-rw-r--r-- | util/ldid.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/ldid.cpp b/util/ldid.cpp index 3bf2f770e..db07317ca 100644 --- a/util/ldid.cpp +++ b/util/ldid.cpp @@ -36,6 +36,7 @@ */ #include "minimal/stdlib.h" +#include "minimal/string.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) - dir = strndup(path, base++ - path + 1); + dir = strndup_(path, base++ - path + 1); else { dir = strdup(""); base = path; |