mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
installer: Pass correct length of hostname to sethostname()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
874ec4b049
commit
fd0b10c92c
@@ -377,7 +377,7 @@ int main(int argc, char *argv[]) {
|
||||
FILE *copying;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
sethostname(DISTRO_SNAME, 10);
|
||||
sethostname(DISTRO_SNAME, strlen(DISTRO_SNAME));
|
||||
|
||||
/* Log file/terminal stuff. */
|
||||
if (argc >= 2) {
|
||||
|
||||
Reference in New Issue
Block a user