Merge branch 'bw/autoconf'
[gitweb.git] / dir.c
diff --git a/dir.c b/dir.c
index 2245749b3fe74f793bd1997d2238883abe61fc07..371bcf7cfbc0b3ae7693fb129a6082924c84194d 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -720,7 +720,7 @@ int read_directory(struct dir_struct *dir, const char *path, const char *base, i
 {
        struct path_simplify *simplify;
 
-       if (has_symlink_leading_path(strlen(path), path))
+       if (has_symlink_leading_path(path, strlen(path)))
                return dir->nr;
 
        simplify = create_simplify(pathspec);