aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6f15e36..ced6f40 100644
--- a/main.c
+++ b/main.c
@@ -462,7 +462,7 @@ main(int argc, char **argv, char **envp)
/* Don't use hostname if it is truncated. */
hostname[HOST_NAME_MAX + 1] = '\0';
hostname_len = strlen(hostname);
- if (hostname_len <= HOST_NAME_MAX && hostname_len <= INT_MAX)
+ if (hostname_len <= HOST_NAME_MAX && hostname_len < STR_SIZE_MAX)
HostName = allocStr(hostname, (int)hostname_len);
}
}