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
in local->local mode don't use exec to start the "remote" rsync,
[rsync/rsync.git]
/
uidlist.c
diff --git
a/uidlist.c
b/uidlist.c
index
962bb8c
..
4aa098f
100644
(file)
--- a/
uidlist.c
+++ b/
uidlist.c
@@
-256,9
+256,9
@@
void recv_uid_list(int f, struct file_list *flist)
id = read_int(f);
while (id != 0) {
int len = read_byte(f);
id = read_int(f);
while (id != 0) {
int len = read_byte(f);
- name = (char *)malloc(len);
+ name = (char *)malloc(len
+1
);
if (!name) out_of_memory("recv_uid_list");
if (!name) out_of_memory("recv_uid_list");
- read_buf(f, name, len);
+ read_
s
buf(f, name, len);
if (!list) {
uidlist = add_list(id, name);
list = uidlist;
if (!list) {
uidlist = add_list(id, name);
list = uidlist;
@@
-279,9
+279,9
@@
void recv_uid_list(int f, struct file_list *flist)
id = read_int(f);
while (id != 0) {
int len = read_byte(f);
id = read_int(f);
while (id != 0) {
int len = read_byte(f);
- name = (char *)malloc(len);
+ name = (char *)malloc(len
+1
);
if (!name) out_of_memory("recv_uid_list");
if (!name) out_of_memory("recv_uid_list");
- read_buf(f, name, len);
+ read_
s
buf(f, name, len);
if (!list) {
gidlist = add_list(id, name);
list = gidlist;
if (!list) {
gidlist = add_list(id, name);
list = gidlist;