mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 07:57:35 +00:00
Fix 'Cannot allocate issue via rap://
This commit is contained in:
parent
0f168ff73b
commit
d2e0a7e0fa
@ -993,7 +993,6 @@ static ut8 *r_io_desc_read(RIO *io, RIODesc *desc, ut64 *out_sz) {
|
||||
if (!io || !desc || !out_sz) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (*out_sz == UT64_MAX) {
|
||||
*out_sz = r_io_desc_size (io, desc);
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ static ut64 rap__lseek(RIO *io, RIODesc *fd, ut64 offset, int whence) {
|
||||
eprintf ("Unexpected lseek reply\n");
|
||||
return -1;
|
||||
}
|
||||
offset = r_read_at_be64 (tmp + 1, 1);
|
||||
offset = r_read_at_be64 (tmp, 1);
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user