mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 05:14:15 -04:00
Tweaked the symlink iconv buffer size and fixed a comment.
This commit is contained in:
1 parent
7c7462cd30
commit
87678cefd1
1 file changed
+4
-4
@@ -839,10 +839,10 @@ static struct file_struct *recv_file_entry(struct file_list *flist,
|
||||
}
|
||||
#ifdef ICONV_OPTION
|
||||
/* We don't know how much extra room we need to convert
|
||||
* the as-yet-unread symlink data when converting it,
|
||||
* so let's hope that a double-size buffer is plenty. */
|
||||
* the as-yet-unread symlink data, so let's hope that a
|
||||
* double-size buffer is plenty. */
|
||||
if (sender_symlink_iconv)
|
||||
linkname_len = linkname_len * 2 + 1;
|
||||
linkname_len *= 2;
|
||||
#endif
|
||||
if (munge_symlinks)
|
||||
linkname_len += SYMLINK_PREFIX_LEN;
|
||||
@@ -989,7 +989,7 @@ static struct file_struct *recv_file_entry(struct file_list *flist,
|
||||
xbuf outbuf, inbuf;
|
||||
|
||||
alloc_len = linkname_len;
|
||||
linkname_len /= 2; /* (linkname_len-1) / 2 for odd values. */
|
||||
linkname_len /= 2;
|
||||
|
||||
/* Read the symlink data into the end of our double-sized
|
||||
* buffer and then convert it into the right spot. */
|
||||
|
||||
Reference in new issue
Block a user