projects
/
centaur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clean up code using ElfuScn
[centaur.git]
/
src
/
libelfu
/
modelops
/
detour.c
diff --git
a/src/libelfu/modelops/detour.c
b/src/libelfu/modelops/detour.c
index 075d94544661f16be7572d3264b1485813a91709..86ac46b57edfe8abfcc1f257e705f1805be60811 100644
(file)
--- 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->data
buf + scnoffset, detourcode, 5);
}