]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/dirname.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / gen / FreeBSD / dirname.c
index c291a0636a9523734bdd96fac9f45834d41c2b29..7def49aecd09f3938e701c7fbb9a70cbfce67468 100644 (file)
@@ -64,7 +64,7 @@ dirname_r(const char *path, char *dname)
                errno = ENAMETOOLONG;
                return (NULL);
        }
-       memcpy(dname, path, len);
+       memmove(dname, path, len);
        dname[len] = '\0';
        return (dname);
 }