diff options
author | Jonas Fonseca <fonseca@diku.dk> | 2006-08-26 18:09:17 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-27 04:52:58 +0400 |
commit | 095c424d08d96a5f9ee3ca53ae952e92c5cff99b (patch) | |
tree | 4aac2fb179e264d7fb48813a7bd91025d449c0b3 /builtin-checkout-index.c | |
parent | eb950c192a0e0dfc069e16e857cbe1ae16d8ad82 (diff) |
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 'builtin-checkout-index.c')
-rw-r--r-- | builtin-checkout-index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-checkout-index.c b/builtin-checkout-index.c index 6b55f931cbd..b097c888a0d 100644 --- a/builtin-checkout-index.c +++ b/builtin-checkout-index.c @@ -45,7 +45,7 @@ static int line_termination = '\n'; static int checkout_stage; /* default to checkout stage0 */ static int to_tempfile; -static char topath[4][MAXPATHLEN+1]; +static char topath[4][PATH_MAX + 1]; static struct checkout state; |