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
The server should not be adding an assumed filter rule based on the
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
f32d881
..
632a242
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-359,7
+359,7
@@
int robust_unlink(const char *fname)
/* start where the last one left off to reduce chance of clashes */
start = counter;
do {
/* start where the last one left off to reduce chance of clashes */
start = counter;
do {
- s
printf(&path[pos]
, "%03d", counter);
+ s
nprintf(&path[pos], MAX_RENAMES_DIGITS+1
, "%03d", counter);
if (++counter >= MAX_RENAMES)
counter = 1;
} while ((rc = access(path, 0)) == 0 && counter != start);
if (++counter >= MAX_RENAMES)
counter = 1;
} while ((rc = access(path, 0)) == 0 && counter != start);
@@
-1115,7
+1115,7
@@
char *human_num(int64 num)
units = 'K';
}
if (units) {
units = 'K';
}
if (units) {
- s
printf(bufs[n
], "%.2f%c", dnum, units);
+ s
nprintf(bufs[n], sizeof bufs[0
], "%.2f%c", dnum, units);
return bufs[n];
}
}
return bufs[n];
}
}