Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Use PATH_MAX instead of MAXPATHLEN
[gitweb.git]
/
dir.c
diff --git
a/dir.c
b/dir.c
index 092d07736c60d4c6d86201ebeb841498c3be92a0..a686de660385f8991de2cb759b5994adca9e8b0f 100644
(file)
--- 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);