From 6869eb42e636d0613bff1cf66591d67ab9f1a615 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 3 Sep 2023 18:47:10 +0000 Subject: [PATCH] fixup! stream-ws: Inherit stream-tcp --- src/stream-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream-ws.c b/src/stream-ws.c index 2e178ed..8dc6229 100644 --- a/src/stream-ws.c +++ b/src/stream-ws.c @@ -300,7 +300,7 @@ static struct stream_impl impl = { struct stream* stream_ws_new(int fd, stream_event_fn on_event, void* userdata) { - struct stream_ws *self = calloc(1, STREAM_ALLOC_SIZE); + struct stream_ws *self = calloc(1, sizeof(*self)); if (!self) return NULL;