X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3eeac9bc7ed328b44ca4e49a6daa0fd272c1114c..4313d6f9c00885f6921f5c90f8e52f715ebd81a9:/io.c diff --git a/io.c b/io.c index 42a6bf0c..bdfebafc 100644 --- a/io.c +++ b/io.c @@ -706,7 +706,11 @@ static int readfd_unbuffered(int fd, char *buf, size_t len) static size_t remaining; static size_t iobuf_in_ndx; int tag, ret = 0; - char line[MAXPATHLEN+1]; +#if MAXPATHLEN < 4096 + char line[4096+1024]; +#else + char line[MAXPATHLEN+1024]; +#endif if (!iobuf_in || fd != sock_f_in) return read_timeout(fd, buf, len);