From 0488aa6b5e5b3042aa0a9c1e66ea043de709121a Mon Sep 17 00:00:00 2001 From: Alexander Sieg Date: Mon, 13 Apr 2020 18:30:03 +0200 Subject: [PATCH] Replaced `HOST_NAME_MAX` with portable version --- osc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/osc.c b/osc.c index 6ae913e2..6005c52c 100644 --- a/osc.c +++ b/osc.c @@ -327,11 +327,7 @@ osc_set_pwd(struct terminal *term, char *string) if (hostname_end == NULL) return; -#if __linux__ - char this_host[HOST_NAME_MAX]; -#elif __FreeBSD__ char this_host[sysconf(_SC_HOST_NAME_MAX)]; -#endif if (gethostname(this_host, sizeof(this_host)) < 0) this_host[0] = '\0';