X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=entry.c;h=b2ea0efa82e1a0511fe5aa798618c23827b59bab;hb=91c23e48d0666a673dd14760bb00f6d59234d9d9;hp=793724fd52063157545f523f6d88953b96385c2c;hpb=7fb23e6083dbefa8eb4c554d8b2cd5a6292b2df4;p=git.git diff --git a/entry.c b/entry.c index 793724fd5..b2ea0efa8 100644 --- a/entry.c +++ b/entry.c @@ -135,7 +135,7 @@ static int write_entry(struct cache_entry *ce, char *path, struct checkout *stat int checkout_entry(struct cache_entry *ce, struct checkout *state, char *topath) { - static char path[MAXPATHLEN+1]; + static char path[PATH_MAX + 1]; struct stat st; int len = state->base_dir_len; @@ -172,5 +172,3 @@ int checkout_entry(struct cache_entry *ce, struct checkout *state, char *topath) create_directories(path, state); return write_entry(ce, path, state, 0); } - -