Remove an extraneous strlen from t_setdomainname.c

Reported by:	Coverity
CID:		1377568
MFC after:	15 days
X-MFC-With:	320737
Sponsored by:	Spectra Logic Corp
This commit is contained in:
Alan Somers 2017-07-12 14:51:32 +00:00
parent 808a9c8646
commit 97ae05e314
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320914

View File

@ -83,7 +83,7 @@ restore_domain(void)
n += r;
if (r < 0)
err(1, "read");
if (setdomainname(domain, strlen(domain)) != 0)
if (setdomainname(domain, n) != 0)
err(1, "setdomainname");
close(fd);
}