X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=src%2Flibelfu%2Fmodelops%2Fdetour.c;h=86ac46b57edfe8abfcc1f257e705f1805be60811;hb=70b271e345debda7437c18f86c0f715a42a8267a;hp=075d94544661f16be7572d3264b1485813a91709;hpb=b70b3ff9b1679bb1e0a215b7acd9b6d55497a46b;p=centaur.git 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); }