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
Got rid of unused string_area struct.
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
d0d1c2b
..
13ab38e
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-734,7
+734,7
@@
void sanitize_path(char *p, char *reldir)
while (1) {
/* copy one component through next slash */
*sanp++ = *p++;
- if (*p == '\0' || p[1] == '/') {
+ if (*p == '\0' || p[
-
1] == '/') {
while (*p == '/') {
/* skip multiple slashes */
p++;