fix radare2-regressions/t.archos/Linux-x86_64/dbg_bps regressions (#5661)

This commit is contained in:
Tiago Gasiba 2016-09-01 11:51:00 +02:00 committed by radare
parent 9fa781becc
commit d9cac5b3ff

View File

@ -30,8 +30,8 @@ R_API int r_debug_reg_sync(RDebug *dbg, int type, int write) {
}
} else {
// int bufsize = R_MAX (1024, dbg->reg->size*2); // i know. its hacky
//int bufsize = dbg->reg->size;
int bufsize = dbg->reg->regset[i].arena->size;
int bufsize = dbg->reg->size;
//int bufsize = dbg->reg->regset[i].arena->size;
if (bufsize > 0) {
ut8 *buf = calloc (1, bufsize);
if (!buf) {