mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fix #3113 - Wrong usage of rz_cmd_call instead of rz_core_cmd and @!
This commit is contained in:
parent
235b75f3ed
commit
f2e00c59c8
@ -475,8 +475,8 @@ QString CutterCore::cmdRaw(const char *cmd)
|
||||
CORE_LOCK();
|
||||
rz_cons_push();
|
||||
|
||||
// rz_cmd_call does not return the output of the command
|
||||
rz_cmd_call(core->rcmd, cmd);
|
||||
// rz_core_cmd does not return the output of the command
|
||||
rz_core_cmd(core, cmd, 0);
|
||||
|
||||
// we grab the output straight from rz_cons
|
||||
res = rz_cons_get_buffer();
|
||||
@ -4494,7 +4494,6 @@ QByteArray CutterCore::ioRead(RVA addr, int len)
|
||||
/* Zero-copy */
|
||||
array.resize(len);
|
||||
if (!rz_io_read_at(core->io, addr, (uint8_t *)array.data(), len)) {
|
||||
qWarning() << "Can't read data" << addr << len;
|
||||
array.fill(0xff);
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,7 @@ void HexdumpWidget::updateParseWindow(RVA start_address, int size)
|
||||
|
||||
ui->hexDisasTextEdit->setPlainText(
|
||||
selectedCommand != "" ? Core()->cmdRawAt(
|
||||
QString("%1 %2").arg(selectedCommand).arg(size), start_address)
|
||||
QString("%1 @! %2").arg(selectedCommand).arg(size), start_address)
|
||||
: "");
|
||||
} else {
|
||||
// Fill the information tab hashes and entropy
|
||||
|
Loading…
Reference in New Issue
Block a user