mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fix two covs
This commit is contained in:
parent
fddb32ccd7
commit
297a620a94
@ -22,12 +22,14 @@ static void color_line(const char *line, RStrpool *p, RRegexMatch *ms){
|
||||
r_strpool_memcat (p, inv[0], linv[0]);
|
||||
|
||||
m_len = ms[i].rm_eo - ms[i].rm_so;
|
||||
if (m_len<0) m_len = 0;
|
||||
m_addr = r_str_ndup (line + ms[i].rm_so, m_len);
|
||||
if (m_addr) {
|
||||
if(r_str_ansi_chrn (m_addr, m_len) - m_addr < m_len ){
|
||||
/* there's a CSI in the middle of this match*/
|
||||
m_len = r_str_ansi_filter(m_addr,
|
||||
NULL, NULL, m_len);
|
||||
if (m_len<0) m_len = 0;
|
||||
}
|
||||
r_strpool_memcat (p, m_addr, m_len);
|
||||
r_strpool_memcat (p, inv[1], linv[1]);
|
||||
|
@ -1234,7 +1234,6 @@ static void printraw (RCore *core, int len, int mode) {
|
||||
|
||||
static int cmd_print(void *data, const char *input) {
|
||||
RCore *core = (RCore *)data;
|
||||
ut64 offset = core->offset;
|
||||
int mode, w, p, i, l, len, total[10];
|
||||
ut64 off, from, to, at, ate, piece;
|
||||
ut32 tbs = core->blocksize;
|
||||
@ -1253,8 +1252,7 @@ static int cmd_print(void *data, const char *input) {
|
||||
if (input[0] != 'd' && input[0] != 'D' && input[0] != 'm' && input[0]!='a' && input[0]!='f') {
|
||||
int n = (st32) r_num_math (core->num, input+1);
|
||||
if (n<0) {
|
||||
offset += n;
|
||||
off = offset;
|
||||
off = core->offset + n;
|
||||
len = l = -n;
|
||||
tmpseek = core->offset;
|
||||
} else if (l>0) {
|
||||
|
Loading…
Reference in New Issue
Block a user