From 0796bcfb8e0d6fb5882a1ca8c5fb58c6aa35b97d Mon Sep 17 00:00:00 2001 From: Michal Ziulek Date: Thu, 21 Nov 2024 16:45:13 +0100 Subject: [PATCH] Minor fixes. --- bofs/src/_debug_entry.zig | 2 +- bofs/src/simple.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bofs/src/_debug_entry.zig b/bofs/src/_debug_entry.zig index 386ea2a..743c62c 100644 --- a/bofs/src/_debug_entry.zig +++ b/bofs/src/_debug_entry.zig @@ -61,7 +61,7 @@ pub fn main() !void { if (context.getOutput()) |output| { std.debug.print("==========================================\n", .{}); - std.debug.print("{s}", .{output}); + std.debug.print("{s}\n", .{output}); std.debug.print("==========================================\n", .{}); } diff --git a/bofs/src/simple.c b/bofs/src/simple.c index 68880c6..238c417 100644 --- a/bofs/src/simple.c +++ b/bofs/src/simple.c @@ -5,7 +5,7 @@ unsigned char go(unsigned char* arg_data, int arg_len) { char* buffer = malloc(123); buffer[0] = 'x'; buffer[1] = 0; - BeaconOutput(0, buffer, 10); + BeaconOutput(0, buffer, 2); free(buffer); return 0; }