mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-05 04:56:10 +00:00
Fix warnings in RCons
This commit is contained in:
parent
51175e54d7
commit
4e648db8fa
@ -114,7 +114,7 @@ static void stamp_attr(RConsCanvas *c, int loc, int length) {
|
||||
s = attr_at (c, loc);
|
||||
|
||||
if (s) {
|
||||
if (strlen (s) > 2 && *(*s + 2) == '0') {
|
||||
if (strlen (*s) > 2 && *(*s + 2) == '0') {
|
||||
if (strlen (c->attr) == 5 && *(c->attr + 2) != '0') {
|
||||
char tmp[9];
|
||||
memcpy (tmp, c->attr, 2);
|
||||
@ -135,7 +135,7 @@ static void stamp_attr(RConsCanvas *c, int loc, int length) {
|
||||
for (i = 1; i < length; i++) {
|
||||
s = attr_at (c, loc + i);
|
||||
if (s) {
|
||||
*s = '\0';
|
||||
*s = Color_RESET;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user