mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 04:51:58 -04:00
Eliminate unneeded strlen after strlcpy.
This commit is contained in:
1 parent
72d45525d2
commit
b7cee9498b
1 file changed
+1
-2
+1
-2
@@ -151,8 +151,7 @@ static int get_tmpname(char *fnametmp, char *fname)
|
||||
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 */
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user