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:
asomers 2017-07-12 14:51:32 +00:00
parent fda9c1d9c4
commit 046149ce3e

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);
}