From 91aa98eef7ef5849820e9406c5758936694ae5bd Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 11 Mar 2023 00:30:34 -0600 Subject: [PATCH] chore: copy array instead of calling memcpy --- src/imgui.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/imgui.zig b/src/imgui.zig index a710275..259bc2c 100644 --- a/src/imgui.zig +++ b/src/imgui.zig @@ -76,9 +76,7 @@ pub fn draw(state: *State, tex_id: GLuint, cpu: *Arm7tdmi) void { break :blk; }; - // Ideally, state.title = cpu.bus.pak.title - // since state.title is a [12:0]u8 and cpu.bus.pak.title is a [12]u8 - std.mem.copy(u8, &state.title, &cpu.bus.pak.title); + state.title = cpu.bus.pak.title ++ [_:0]u8{}; } } }