Fix tmpseek

This commit is contained in:
pancake 2017-08-22 23:37:27 +02:00
parent 94d8b8261a
commit 32c2bcc0cd
2 changed files with 6 additions and 9 deletions

View File

@ -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) {

View File

@ -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) {