Fix findNextNumber() in r_parse when scr.color=false (#6888)

Fix #6752
This commit is contained in:
Roi Martin 2017-03-03 10:58:36 +01:00 committed by radare
parent e936da6fbe
commit 8734b3ea4b

View File

@ -137,7 +137,7 @@ static char *findNextNumber(char *op) {
bool is_space = ansi_found;
ansi_found = false;
if (!is_space) {
is_space = (p != op && (*o == ' ' || *o == ',' || *o == '['));
is_space = (p == op || *o == ' ' || *o == ',' || *o == '[');
}
if (is_space && IS_DIGIT(*p)) {
return p;