summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/client.cpp2
-rw-r--r--src/server/point.cpp5
2 files changed, 2 insertions, 5 deletions
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;
}
diff --git a/src/server/point.cpp b/src/server/point.cpp
index cf38bed..5b87d44 100644
--- a/src/server/point.cpp
+++ b/src/server/point.cpp
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <stdbool.h>
-class Point {
+struct Point {
Page *page;
uint16_t index;
@@ -55,9 +55,6 @@ class Point {
}
}
-
- public:
-
Point() : page(0), index(0) {}
Point(Page* page, uint16_t index) : page(page), index(index) {}
Point(const Buffer &b) : page(b.storage), index(0) {}