Skip to content

Commit

Permalink
fixes #18088 (#18209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Jun 7, 2021
1 parent 5bad022 commit 21f3b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/nativesockets.nim
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ proc getHostname*(): string {.tags: [ReadIOEffect].} =
## Returns the local hostname (not the FQDN)
# https://tools.ietf.org/html/rfc1035#section-2.3.1
# https://tools.ietf.org/html/rfc2181#section-11
const size = 64
const size = 256
result = newString(size)
when useWinVersion:
let success = winlean.gethostname(result, size)
Expand Down

0 comments on commit 21f3b85

Please sign in to comment.