about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-08-01 20:50:31 +0200
committerbptato <nincsnevem662@gmail.com>2023-08-01 20:50:31 +0200
commit05bb3926ff314f0b65b9b89d7571e6573a213eab (patch)
tree0c71fb3bc259090d8a284ebd1aa22162f2360a57 /src
parentddacae6eaf14082f94d324a817065bdb492dd402 (diff)
downloadchawan-05bb3926ff314f0b65b9b89d7571e6573a213eab.tar.gz
serialize: add missing prepareMutation
Diffstat (limited to 'src')
-rw-r--r--src/ips/serialize.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ips/serialize.nim b/src/ips/serialize.nim
index 9898c0cd..2fe1fd09 100644
--- a/src/ips/serialize.nim
+++ b/src/ips/serialize.nim
@@ -131,6 +131,7 @@ proc sread*(stream: Stream, s: var string) =
   stream.sread(len)
   if len > 0:
     s = newString(len)
+    prepareMutation(s)
     if stream.readData(addr s[0], len) < len:
       raise newException(EOFError, "eof")
   else: