mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Parse grep line only if there is a digit afterward :
This commit is contained in:
parent
8f3b7f4870
commit
94f753ac52
@ -255,7 +255,7 @@ while_end:
|
||||
|
||||
ptr2 = strchr_ns (ptr, ':'); // line number
|
||||
grep->range_line = 2; // there is not :
|
||||
if (ptr2 && ptr2[1] != ':' && ptr2[1]) {
|
||||
if (ptr2 && ptr2[1] != ':' && ptr2[1] && (IS_DIGIT (ptr2[1]) || ptr2[1] == '-' || ptr2[1] == '.')) {
|
||||
end_ptr = end_ptr ? R_MIN (end_ptr, ptr2) : ptr2;
|
||||
char *p, *token = ptr2 + 1;
|
||||
p = strstr (token, "..");
|
||||
|
Loading…
Reference in New Issue
Block a user