From: Michael Tremer Date: Fri, 5 Apr 2024 12:59:40 +0000 (+0000) Subject: installer: Pass correct length of hostname to sethostname() X-Git-Tag: v2.29-core186~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd0b10c92cdc87c56fb51a3316f12a0412278a4e;p=ipfire-2.x.git installer: Pass correct length of hostname to sethostname() Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/src/installer/main.c b/src/installer/main.c index ecfcff2ecc..6253df550e 100644 --- a/src/installer/main.c +++ b/src/installer/main.c @@ -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) {