diff options
| author | Wayne Davison <wayned@samba.org> | 2005-04-04 17:27:56 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2005-04-04 17:27:56 +0000 |
| commit | 2a0dd9bd70f4610f0bd294a50acc8e3283d70e84 (patch) | |
| tree | ab2298ced4eefc1149c8f9a74f6e647f075a2c8e /io.c | |
| parent | 3eeac9bc7ed328b44ca4e49a6daa0fd272c1114c (diff) | |
| download | android_external_rsync-2a0dd9bd70f4610f0bd294a50acc8e3283d70e84.tar.gz android_external_rsync-2a0dd9bd70f4610f0bd294a50acc8e3283d70e84.tar.bz2 android_external_rsync-2a0dd9bd70f4610f0bd294a50acc8e3283d70e84.zip | |
Make sure that the line buffer in readfd_unbuffered() is large
enough to handle long-filename messages on a system that has a
really short MAXPATHLEN value. Also, make it large enough to
be able to comment on a MAXPATHLEN filename.
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |
