Skip to content

Commit 21f3b85

Browse files
authored
fixes #18088 (#18209)
1 parent 5bad022 commit 21f3b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pure/nativesockets.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ proc getHostname*(): string {.tags: [ReadIOEffect].} =
438438
## Returns the local hostname (not the FQDN)
439439
# https://tools.ietf.org/html/rfc1035#section-2.3.1
440440
# https://tools.ietf.org/html/rfc2181#section-11
441-
const size = 64
441+
const size = 256
442442
result = newString(size)
443443
when useWinVersion:
444444
let success = winlean.gethostname(result, size)

0 commit comments

Comments
 (0)