From dbdcd61b3a3043b08f86f959bd45df4967503a77 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 10 Dec 2023 19:23:58 -0500 Subject: [PATCH] procaddr: fix what I broke with the last push --- hook/procaddr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hook/procaddr.c b/hook/procaddr.c index a9f2499..6ac1c28 100644 --- a/hook/procaddr.c +++ b/hook/procaddr.c @@ -34,7 +34,6 @@ HRESULT proc_addr_table_push( HRESULT hr; struct proc_addr_table *new_item; struct proc_addr_table *new_mem; - size_t target_len = strlen(target); proc_addr_hook_init(); @@ -54,9 +53,9 @@ HRESULT proc_addr_table_push( } new_item = &new_mem[proc_addr_hook_count]; - strcpy_s(new_item->name, target_len, target); + new_item->name = target; new_item->nsyms = nsyms; - memcpy(new_item->syms, syms, sizeof(*syms)); + new_item->syms = (struct hook_symbol *) syms; proc_addr_hook_list = new_mem; proc_addr_hook_count++;