X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/c296031d9fd9e9826d3ef3709df03050fc6b4a44..273a7ed59f03b1f50348cca57cfc6877f8634900:/rsync.h diff --git a/rsync.h b/rsync.h index e079a653..5a86d083 100644 --- a/rsync.h +++ b/rsync.h @@ -463,6 +463,14 @@ struct idev { #define MAXPATHLEN 1024 #endif +/* We want a roomy line buffer that can hold more than MAXPATHLEN, + * and significantly more than an overly short MAXPATHLEN. */ +#if MAXPATHLEN < 4096 +#define BIGPATHBUFLEN (4096+1024) +#else +#define BIGPATHBUFLEN (MAXPATHLEN+1024) +#endif + #ifndef NAME_MAX #define NAME_MAX 255 #endif