1 parent f2b796e commit 323c09eCopy full SHA for 323c09e
1 file changed
py/stream.c
@@ -88,6 +88,7 @@ static mp_obj_t stream_readall(mp_obj_t self_in) {
88
}
89
90
vstr_set_size(vstr, total_size + 1); // TODO: for \0
91
+ buf = vstr_str(vstr);
92
buf[total_size] = 0;
93
return mp_obj_new_str(qstr_from_str_take(buf, total_size + 1));
94
0 commit comments