summaryrefslogtreecommitdiff
path: root/builtin-checkout-index.c
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2006-08-26 16:09:17 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-26 17:52:58 -0700
commit095c424d08d96a5f9ee3ca53ae952e92c5cff99b (patch)
tree4aac2fb179e264d7fb48813a7bd91025d449c0b3 /builtin-checkout-index.c
parenteb950c192a0e0dfc069e16e857cbe1ae16d8ad82 (diff)
downloadgit-095c424d08d96a5f9ee3ca53ae952e92c5cff99b.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-checkout-index.c b/builtin-checkout-index.c
index 6b55f931cb..b097c888a0 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;