diff options
author | Araq <rumpf_a@web.de> | 2018-09-27 09:59:07 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-27 09:59:07 +0200 |
commit | 72e15ff739cc73fbf6e3090756d3f9cb3d5af2fa (patch) | |
tree | ee6bf5b11f6a05c2583eef5958575bd888737738 /tools | |
parent | f6c5c636bb1a1f4e1301ae0ba5a8afecef439132 (diff) | |
download | Nim-72e15ff739cc73fbf6e3090756d3f9cb3d5af2fa.tar.gz |
nimgrab tool: fixes for Nim v0.19
Diffstat (limited to 'tools')
-rw-r--r-- | tools/urldownloader.nim | 2 |
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: |