Commit b7cee949 authored by J.W. Schultz's avatar J.W. Schultz

Eliminate unneeded strlen after strlcpy.

parent 72d45525
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment