Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use MAXHOSTNAMELEN (256) for the array holding the host_name in socket.c
[rsync/rsync.git]
/
hlink.c
diff --git
a/hlink.c
b/hlink.c
index
ed6d75e
..
76b2fb6
100644
(file)
--- a/
hlink.c
+++ b/
hlink.c
@@
-56,7
+56,7
@@
void init_hard_links(struct file_list *flist)
out_of_memory("init_hard_links");
for (i = 0; i < flist->count; i++)
out_of_memory("init_hard_links");
for (i = 0; i < flist->count; i++)
-
bcopy(flist->files[i], &hlink_list
[i], sizeof(hlink_list[0]));
+
memcpy(&hlink_list[i], flist->files
[i], sizeof(hlink_list[0]));
qsort(hlink_list,flist->count,
sizeof(hlink_list[0]),
qsort(hlink_list,flist->count,
sizeof(hlink_list[0]),