mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-08 06:47:33 +00:00
Fix crash when loading the dark theme (thanks asan)
This commit is contained in:
parent
0154e8297a
commit
d2b13c7764
@ -192,12 +192,12 @@ R_API char *r_cons_pal_parse (const char *str) {
|
||||
}
|
||||
}
|
||||
if (p && !strncmp (p, "rgb:", 4)) {
|
||||
if (strlen (s) == 7) {
|
||||
if (strlen (p) == 7) {
|
||||
r = rgbnum (p[4], '0');
|
||||
g = rgbnum (p[5], '0');
|
||||
b = rgbnum (p[6], '0');
|
||||
r_cons_rgb_str (out + strlen (out), r, g, b, 1);
|
||||
} else if (strlen (s) == 10) {
|
||||
} else if (strlen (p) == 10) {
|
||||
r = rgbnum (p[4], p[5]);
|
||||
g = rgbnum (p[6], p[7]);
|
||||
b = rgbnum (p[8], p[9]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user