summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 950e687d..5e249267 100644
--- a/stream.c
+++ b/stream.c
@@ -1553,7 +1553,7 @@ val make_string_output_stream(void)
struct string_out *so = coerce(struct string_out *, chk_malloc(sizeof *so));
strm_base_init(&so->a);
so->size = 128;
- so->buf = coerce(wchar_t *, chk_malloc(so->size * sizeof so->buf));
+ so->buf = chk_wmalloc(so->size);
so->fill = 0;
so->buf[0] = 0;
utf8_decoder_init(&so->ud);