diff options
author | Zeex <zeex@rocketmail.com> | 2020-11-02 20:14:49 +0600 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2020-11-02 20:15:12 +0600 |
commit | 6fae00efdf2ee4760efb206f84e66d8593f58509 (patch) | |
tree | d3b27158938766180f5cc9f477eb566b647b15e5 /subhook_unix.c | |
parent | 1420130730c62485624e958076ccb0f1923e6b89 (diff) | |
download | subhook-6fae00efdf2ee4760efb206f84e66d8593f58509.zip subhook-6fae00efdf2ee4760efb206f84e66d8593f58509.tar.gz subhook-6fae00efdf2ee4760efb206f84e66d8593f58509.tar.bz2 |
Fix segfault in subhook_new()
This fixes #51.
Diffstat (limited to 'subhook_unix.c')
-rw-r--r-- | subhook_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |