From ac5511e9bdda73f42e58189e7e143e8ba78ceb26 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sat, 5 Apr 2025 00:48:10 -0400 Subject: Not using writer Use direct mem copying into the buf instead of writing to it with the writer interface. Probably better to use the writer actually, since this suffers from the same issue with the extra two null bytes. --- src/saprus.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/saprus.zig') diff --git a/src/saprus.zig b/src/saprus.zig index d591928..e7ea951 100644 --- a/src/saprus.zig +++ b/src/saprus.zig @@ -51,10 +51,10 @@ pub fn sendInitialConnection(payload: []const u8, initial_port: u16, allocator: .seq_num = 1, .msg_id = 2, .reserved = 5, - .options = .{ - .opt2 = true, - .opt8 = true, - }, + // .options = .{ + // .opt2 = true, + // .opt8 = true, + // }, }, .payload = payload, }, -- cgit