X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=entry.c;h=88df7139477f94c236f93ca835c28ed4dd9543de;hb=60c0f8462fefed22fc8fb9c4e529665ed8204536;hp=793724fd52063157545f523f6d88953b96385c2c;hpb=a549e11cc2fee10ddf66dd98ea79f7c624eee34e;p=git.git diff --git a/entry.c b/entry.c index 793724fd5..88df71394 100644 --- a/entry.c +++ b/entry.c @@ -1,5 +1,3 @@ -#include -#include #include "cache.h" #include "blob.h" @@ -135,7 +133,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 +170,3 @@ int checkout_entry(struct cache_entry *ce, struct checkout *state, char *topath) create_directories(path, state); return write_entry(ce, path, state, 0); } - -