summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.c b/client.c
index a191f42..bcb281f 100644
--- a/client.c
+++ b/client.c
@@ -38,7 +38,7 @@ struct Client {
 	enum Need need;
 	size_t consumer;
 	bool serverTime;
-	char buf[4096];
+	char buf[1024];
 	size_t len;
 	bool error;
 };
@@ -220,6 +220,7 @@ static bool intercept(const char *line, size_t len) {
 }
 
 void clientRecv(struct Client *client) {
+	assert(client->len < sizeof(client->buf));
 	ssize_t read = tls_read(
 		client->tls,
 		&client->buf[client->len], sizeof(client->buf) - client->len
xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe cwm still needs a lot more rebinding, and I need to actually look at its other options. xterm definitely still needs some configuration, but I at least managed to get it to use a decent looking font. Very happy that OpenBSD includes Luxi Mono, which is what my usual font, Go Mono, is based on anyway. Still missing is xmodmap and such. 2021-02-06Add xterm output to schemeJune McEnroe