summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2006-08-26 14:09:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-27 00:52:58 (GMT)
commit095c424d08d96a5f9ee3ca53ae952e92c5cff99b (patch)
tree4aac2fb179e264d7fb48813a7bd91025d449c0b3 /dir.c
parenteb950c192a0e0dfc069e16e857cbe1ae16d8ad82 (diff)
downloadgit-095c424d08d96a5f9ee3ca53ae952e92c5cff99b.zip
git-095c424d08d96a5f9ee3ca53ae952e92c5cff99b.tar.gz
git-095c424d08d96a5f9ee3ca53ae952e92c5cff99b.tar.bz2
Use PATH_MAX instead of MAXPATHLEN
According to sys/paramh.h it's a "BSD name" for values defined in <limits.h>. Besides PATH_MAX seems to be more commonly used. Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 092d077..a686de6 100644
--- a/dir.c
+++ b/dir.c
@@ -293,7 +293,7 @@ static int read_directory_recursive(struct dir_struct *dir, const char *path, co
if (fdir) {
int exclude_stk;
struct dirent *de;
- char fullname[MAXPATHLEN + 1];
+ char fullname[PATH_MAX + 1];
memcpy(fullname, base, baselen);
exclude_stk = push_exclude_per_directory(dir, base, baselen);