From 6fae00efdf2ee4760efb206f84e66d8593f58509 Mon Sep 17 00:00:00 2001 From: Zeex Date: Mon, 2 Nov 2020 20:14:49 +0600 Subject: Fix segfault in subhook_new() This fixes #51. --- subhook_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subhook_unix.c') diff --git a/subhook_unix.c b/subhook_unix.c index d3616d7..d0d1251 100644 --- a/subhook_unix.c +++ b/subhook_unix.c @@ -51,7 +51,7 @@ void *subhook_alloc_code(size_t size) { 0); } -int subhok_free_code(void *address, size_t size) { +int subhook_free_code(void *address, size_t size) { if (address == NULL) { return 0; } -- cgit v1.1