summary refs log tree commit diff stats
path: root/tools/urldownloader.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tools/urldownloader.nim')
-rw-r--r--tools/urldownloader.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/urldownloader.nim b/tools/urldownloader.nim
index 46d67c821..94f18fa81 100644
--- a/tools/urldownloader.nim
+++ b/tools/urldownloader.nim
@@ -222,7 +222,7 @@ proc `$`(bstr: LPWSTR): string =
   if count == 0:
     raiseOsError(osLastError())
   else:
-    result = newStringOfCap(count + 8)
+    result = newString(count + 8)
     let res = WideCharToMultiByte(CP_UTF8, 0, bstr, -1, addr(result[0]), count,
                                   nil, nil)
     if res == 0: