From d1908271413fc727d7a5b5e96c91e32b3f7a885a Mon Sep 17 00:00:00 2001 From: root <> Date: Sun, 4 May 2025 15:24:55 +0000 Subject: [PATCH] small fix: copying 8 bytes at once --- hello.s | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hello.s b/hello.s index 62c7279..6ab1bde 100644 --- a/hello.s +++ b/hello.s @@ -111,10 +111,9 @@ make_sockaddr: make_sockaddr__copy_server_path: cmp rax, server_path_len jge return - mov r10, [rax+server_path] - add rax, 2 - mov [rax+sockaddr], r10 - sub rax, 1 + mov r10, [server_path + rax] + mov [sockaddr + rax + 2], r10 + add rax, 8 jmp make_sockaddr__copy_server_path return: