summaryrefslogtreecommitdiffhomepage
path: root/src/hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hook.c')
-rw-r--r--src/hook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hook.c b/src/hook.c
index eacac4a..ff7ac96 100644
--- a/src/hook.c
+++ b/src/hook.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2022 Willian Henrique <wsimanbrazil@yahoo.com.br>
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -102,7 +102,7 @@ nosp: con_warn("hook_inline: out of trampoline space\n");
}
void unhook_inline(void *orig) {
- uchar *p = (uchar *)orig;
+ uchar *p = orig;
int len = p[-1];
int off = mem_load32(p + len + 1);
uchar *q = p + off + 5;