diff options
Diffstat (limited to 'src/libelfu/modelops/detour.c')
-rw-r--r-- | src/libelfu/modelops/detour.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libelfu/modelops/detour.c b/src/libelfu/modelops/detour.c index 075d945..86ac46b 100644 --- a/src/libelfu/modelops/detour.c +++ b/src/libelfu/modelops/detour.c @@ -47,5 +47,5 @@ void elfu_mDetour(ElfuElf *me, GElf_Addr from, GElf_Addr to) (unsigned)to); *(Elf32_Word*)(detourcode + 1) = to - from - 5; - memcpy((char*)ms->data.d_buf + scnoffset, detourcode, 5); + memcpy(ms->databuf + scnoffset, detourcode, 5); } |