From 72e15ff739cc73fbf6e3090756d3f9cb3d5af2fa Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 27 Sep 2018 09:59:07 +0200 Subject: nimgrab tool: fixes for Nim v0.19 --- tools/urldownloader.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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: -- cgit 1.4.1-2-gfad0