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
fixed a string termination bug in the uidlist handling code. I've also
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
935c0c5
..
83c0b39
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-164,9
+164,9
@@
void recv_exclude_list(int f)
char line[MAXPATHLEN];
int l;
while ((l=read_int(f))) {
-
read_buf(f,line,l
);
-
line[l] = 0
;
- add_exclude(line);
+
if (l >= MAXPATHLEN) overflow("recv_exclude_list"
);
+
read_sbuf(f,line,l)
;
+
add_exclude(line);
}
}