mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
* Fix io_ptrace write in 64bits
* Fix indentation of io_ptrace.c
This commit is contained in:
parent
5495f187a8
commit
43b57a7102
@ -61,7 +61,7 @@ static int __read(struct r_io_t *io, RIODesc *fd, ut8 *buf, int len) {
|
|||||||
|
|
||||||
static int ptrace_write_at(int pid, const ut8 *buf, int sz, ut64 addr) {
|
static int ptrace_write_at(int pid, const ut8 *buf, int sz, ut64 addr) {
|
||||||
long words = sz / sizeof(long);
|
long words = sz / sizeof(long);
|
||||||
long last = (sz % sizeof(long))*sizeof(long)*2;
|
long last = (sz - words*sizeof(long)) * 8;
|
||||||
long x, lr;
|
long x, lr;
|
||||||
|
|
||||||
for (x=0; x<words; x++)
|
for (x=0; x<words; x++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user