diff options
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |