mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-08 14:58:54 +00:00
Fix tmpseek
This commit is contained in:
parent
94d8b8261a
commit
32c2bcc0cd
@ -2068,8 +2068,8 @@ next2:
|
||||
int sz, len;
|
||||
ut8 *buf;
|
||||
|
||||
*ptr = '\0';
|
||||
for (ptr++; *ptr == ' '; ptr++) {
|
||||
*ptr++ = '\0';
|
||||
for (; *ptr == ' '; ptr++) {
|
||||
//nothing to see here
|
||||
}
|
||||
if (*ptr && ptr[1] == ':') {
|
||||
@ -2294,12 +2294,11 @@ next_arroba:
|
||||
ret = r_cmd_call (core->rcmd, r_str_trim_head (cmd));
|
||||
} else {
|
||||
if (addr != UT64_MAX) {
|
||||
if (!ptr[1] || r_core_seek (core, addr, 1)) {
|
||||
if (ptr[1]) {
|
||||
r_core_seek (core, addr, 1);
|
||||
r_core_block_read (core);
|
||||
ret = r_cmd_call (core->rcmd, r_str_trim_head (cmd));
|
||||
} else {
|
||||
ret = 0;
|
||||
}
|
||||
ret = r_cmd_call (core->rcmd, r_str_trim_head (cmd));
|
||||
}
|
||||
}
|
||||
if (tmpseek) {
|
||||
|
@ -265,9 +265,7 @@ static int __prelude_cb_hit(RSearchKeyword *kw, void *user, ut64 addr) {
|
||||
return true;
|
||||
}
|
||||
|
||||
R_API int r_core_search_prelude(RCore *core, ut64 from, ut64 to, const ut8 *buf,
|
||||
int blen, const ut8 *mask, int mlen) {
|
||||
int ret;
|
||||
R_API int r_core_search_prelude(RCore *core, ut64 from, ut64 to, const ut8 *buf, int blen, const ut8 *mask, int mlen) {
|
||||
ut64 at;
|
||||
ut8 *b = (ut8 *) malloc (core->blocksize);
|
||||
if (!b) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user