Fix 'Cannot allocate issue via rap://

This commit is contained in:
pancake 2016-09-12 22:06:58 +02:00
parent 0f168ff73b
commit d2e0a7e0fa
2 changed files with 1 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;
}