diff options
author | c-blake <c-blake@users.noreply.github.com> | 2018-09-04 09:26:34 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-04 15:26:34 +0200 |
commit | cec89d835494bda07d7b27636a24544460574904 (patch) | |
tree | 37755ff3978a4d64920141e6fdb41af72ee64b8b /lib | |
parent | d2eea9e1c90a406f25626685ed8237aa2e5a18df (diff) | |
download | Nim-cec89d835494bda07d7b27636a24544460574904.tar.gz |
This has been unnecessary as long as rawNewObj has called zeroMem, (#8867)
and more recently indexing past the Nim-logical end has become illegal making this line cause a crash.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/memfiles.nim | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/pure/memfiles.nim b/lib/pure/memfiles.nim index 0249b7413..9fccd08d4 100644 --- a/lib/pure/memfiles.nim +++ b/lib/pure/memfiles.nim @@ -328,7 +328,6 @@ proc `$`*(ms: MemSlice): string {.inline.} = ## Return a Nim string built from a MemSlice. var buf = newString(ms.size) copyMem(addr(buf[0]), ms.data, ms.size) - buf[ms.size] = '\0' result = buf iterator memSlices*(mfile: MemFile, delim='\l', eat='\r'): MemSlice {.inline.} = |