Skip to content
  • Ting-Wei Lan's avatar
    gutils: Don't limit the length of the host name to 99 · 446ba28d
    Ting-Wei Lan authored
    It is unclear that why the size of the buffer was chosen to be 100
    because the commit introduced the code didn't mention the reason.
    POSIX defines _POSIX_HOST_NAME_MAX to be 255 and provides a way to
    determine the suitable value with sysconf, so we should use it instead
    of hard-coding a small value.
    446ba28d