Eliminate unneeded strlen after strlcpy.

This commit is contained in:
J.W. Schultz committed 2004-01-20 03:37:04 +00:00
1 parent 72d45525d2
commit b7cee9498b
1 file changed
+1 -2
+1 -2
View File
@@ -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 */
}