Random fixes

This commit is contained in:
pancake 2013-12-03 03:36:56 +01:00
parent 9cf450272e
commit b98c327385
3 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,7 @@
R_API RAnalOp* r_core_anal_op(RCore *core, ut64 addr) {
RAnalOp op, *_op;
char buf[128];
ut8 buf[128];
if (r_io_read_at (core->io, addr, buf, sizeof (buf))<1)
return NULL;
if (r_anal_op (core->anal, &op, addr, buf, sizeof (buf))<1)
@ -711,7 +711,7 @@ R_API int r_core_anal_fcn_list(RCore *core, const char *input, int rad) {
|| infun(fcn, addr) || !strcmp (fcn->name, input+1)) {
if (!rad) {
r_cons_printf ("#\n offset: 0x%08"PFMT64x"\n name: %s\n size: %"PFMT64d,
fcn->addr, fcn->name, fcn->size);
fcn->addr, fcn->name, (ut64)fcn->size);
r_cons_printf ("\n type: %s",
fcn->type==R_ANAL_FCN_TYPE_SYM?"sym":
fcn->type==R_ANAL_FCN_TYPE_IMP?"imp":"fcn");

View File

@ -788,7 +788,7 @@ static int cmd_print(void *data, const char *input) {
char *new_arch, *old_arch;
ut32 pd_result = R_FALSE, processed_cmd = R_FALSE;
old_arch = strdup (r_config_get (core->config, "asm.arch"));
segoff = r_config_get (core->config, "asm.segoff");
segoff = r_config_get_i (core->config, "asm.segoff");
old_bits = r_config_get_i (core->config, "asm.bits");
// XXX - this is necessay b/c radare will automatically
// swap flags if arch is x86 and bits == 16 see: __setsegoff in config.c
@ -1071,7 +1071,6 @@ static int cmd_print(void *data, const char *input) {
}
}
} else {
ut64 idx = 0;
// XXX: issue with small blocks
if (*input == 'D') {
block = malloc (l);

View File

@ -192,7 +192,7 @@ static int cmd_seek(void *data, const char *input) {
case 'o':
{
RAnalOp op;
int val, ret, i, n = r_num_math (core->num, input+1);
int val=0, ret, i, n = r_num_math (core->num, input+1);
if (n<0) {
int ret = prevopsz (core, n);
eprintf ("Neagg %d\n", ret);