[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. (#12754)

(cherry picked from commit 0944b0f441)
This commit is contained in:
3n-k1
2019-11-28 02:32:11 -05:00
committed by narimiran
parent 10935a71ed
commit a02a4d8fc5
9 changed files with 106 additions and 106 deletions

View File

@@ -97,7 +97,7 @@ proc bufSubstr(b: cstring, sPos, ePos: int): string {.inline.} =
## Don't assume cstring is '\0' terminated
let sz = ePos - sPos
result = newString(sz+1)
copyMem(addr(result[0]), unsafeaddr(b[sPos]), sz)
copyMem(addr(result[0]), unsafeAddr(b[sPos]), sz)
result.setLen(sz)
proc matchOrFind(buf: cstring, pattern: Regex, matches: var openArray[string],