X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=entry.c;h=88df7139477f94c236f93ca835c28ed4dd9543de;hb=2c039da804ee0542ff41d2f22a444d04a2d37856;hp=793724fd52063157545f523f6d88953b96385c2c;hpb=3d9c54d7b39faab35f0b30459fe4e2c7f32124b8;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); } - -