From af30c7d1c5f8d25823d475dc70c90235597783c2 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Sun, 6 Jul 2008 21:06:40 +0000 Subject: Switched to minimal's strndup. git-svn-id: http://svn.telesphoreo.org/trunk@354 514c082c-b64e-11dc-b46d-3d985efe055d --- util/ldid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3