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 new stringjoin() function.
[rsync/rsync.git]
/
receiver.c
diff --git
a/receiver.c
b/receiver.c
index
e38fe5a
..
246caea
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-151,8
+151,7
@@
static int get_tmpname(char *fnametmp, char *fname)
int maxname;
if (tmpdir) {
int maxname;
if (tmpdir) {
- strlcpy(fnametmp, tmpdir, MAXPATHLEN - 2);
- length = strlen(fnametmp);
+ length = strlcpy(fnametmp, tmpdir, MAXPATHLEN - 2);
fnametmp[length++] = '/';
fnametmp[length] = '\0'; /* always NULL terminated */
}
fnametmp[length++] = '/';
fnametmp[length] = '\0'; /* always NULL terminated */
}