File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1372,7 +1372,7 @@ int parse_line_range_desc(const char *arg, struct line_range *lr)
1372
1372
lr -> start = 0 ;
1373
1373
lr -> end = INT_MAX ;
1374
1374
1375
- range = strchr (name , ':' );
1375
+ range = strpbrk_esc (name , ":" );
1376
1376
if (range ) {
1377
1377
* range ++ = '\0' ;
1378
1378
@@ -1413,7 +1413,7 @@ int parse_line_range_desc(const char *arg, struct line_range *lr)
1413
1413
}
1414
1414
}
1415
1415
1416
- file = strchr (name , '@' );
1416
+ file = strpbrk_esc (name , "@" );
1417
1417
if (file ) {
1418
1418
* file = '\0' ;
1419
1419
lr -> file = strdup (++ file );
@@ -1422,7 +1422,7 @@ int parse_line_range_desc(const char *arg, struct line_range *lr)
1422
1422
goto err ;
1423
1423
}
1424
1424
lr -> function = name ;
1425
- } else if (strchr (name , '/' ) || strchr ( name , '.' ))
1425
+ } else if (strpbrk_esc (name , "/." ))
1426
1426
lr -> file = name ;
1427
1427
else if (is_c_func_name (name ))/* We reuse it for checking funcname */
1428
1428
lr -> function = name ;
You can’t perform that action at this time.
0 commit comments