From 8b0e45bd2cf2ae97d26e7922f9dbf6c9903bb7c6 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 9 Mar 2022 23:32:22 +0100 Subject: Fix: Windows: libfstream: allocation size of stdout stream struct Signed-off-by: David Oberhollenzer --- lib/fstream/win32/ostream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fstream/win32/ostream.c b/lib/fstream/win32/ostream.c index 61dae37..2bd78c8 100644 --- a/lib/fstream/win32/ostream.c +++ b/lib/fstream/win32/ostream.c @@ -181,7 +181,7 @@ fail_free: ostream_t *ostream_open_stdout(void) { - ostream_t *strm = calloc(1, sizeof(strm)); + ostream_t *strm = calloc(1, sizeof(*strm)); sqfs_object_t *obj = (sqfs_object_t *)strm; if (strm == NULL) { -- cgit v1.2.3