From 0f22f0178cdfd27e2bac47388fb710023d9f4494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Wed, 5 Aug 2020 20:17:56 -0300 Subject: Fix line lengths not sent properly --- src/server/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/client.cpp') diff --git a/src/server/client.cpp b/src/server/client.cpp index 7932436..a2579ab 100644 --- a/src/server/client.cpp +++ b/src/server/client.cpp @@ -76,7 +76,7 @@ struct Client { } io.send(view, window_w * window_h); - io.send(line_ends, window_h); + io.send(line_ends, window_h * sizeof(int)); delete[] view; delete[] line_ends; } -- cgit v1.2.3