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:
Michael Tremer
2024-04-05 12:59:40 +00:00
committed by Arne Fitzenreiter
parent 874ec4b049
commit fd0b10c92c

View File

@@ -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) {