[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2024-01-11 11:10:41 +00:00
committed by GitHub
parent 2adb9b5f0f
commit 3c3b9e8fa3

View File

@@ -2544,7 +2544,7 @@ pub inline fn socketcast(fd: anytype) std.os.socket_t {
}
pub const HOST_NAME_MAX = if (Environment.isWindows)
// On Windows the maximum length, in bytes, of the string returned in the buffer pointed to by the name parameter is dependent on the namespace provider, but this string must be 256 bytes or less.
// On Windows the maximum length, in bytes, of the string returned in the buffer pointed to by the name parameter is dependent on the namespace provider, but this string must be 256 bytes or less.
// So if a buffer of 256 bytes is passed in the name parameter and the namelen parameter is set to 256, the buffer size will always be adequate.
// https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-gethostname
256