summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system/channels.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/channels.nim b/lib/system/channels.nim
index 520652875..617dddb7e 100755
--- a/lib/system/channels.nim
+++ b/lib/system/channels.nim
@@ -114,7 +114,7 @@ proc storeAux(dest, src: Pointer, mt: PNimType, t: PRawChannel,
           mt.Base, t, mode)

       var dstseq = cast[PGenericSeq](dst)

       dstseq.len = seq.len

-      dstseq.space = seq.len

+      dstseq.reserved = seq.len

       if mode != mStore: Dealloc(t.region, s2)

   of tyObject:

     # copy type field: