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:
parent
fda9c1d9c4
commit
046149ce3e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user