summary refs log tree commit diff stats
path: root/lib/pure/nativesockets.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-06-07 17:22:35 +0200
committerGitHub <noreply@github.com>2021-06-07 17:22:35 +0200
commit21f3b8539a2e440f7cb69502721b6c56070e122f (patch)
tree8aa8476722956175666894af3480a185b653429b /lib/pure/nativesockets.nim
parent5bad022d58e21f0da455fbd7d421cd26a2b5c812 (diff)
downloadNim-21f3b8539a2e440f7cb69502721b6c56070e122f.tar.gz
fixes #18088 (#18209)
Diffstat (limited to 'lib/pure/nativesockets.nim')
-rw-r--r--lib/pure/nativesockets.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim
index 605f62321..124afce56 100644
--- a/lib/pure/nativesockets.nim
+++ b/lib/pure/nativesockets.nim
@@ -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)