X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/34136e65fc7bd6babcfedcbfcfdca3b9feb10f1d..9fd33c2b6ef5d98ac14ac7d83bc453b148fda768:/src/location.c diff --git a/src/location.c b/src/location.c index 281a8870..88887e92 100644 --- a/src/location.c +++ b/src/location.c @@ -143,11 +143,11 @@ boundary_set_from_string (boundary *bound, char *loc_str) { /* Must search in reverse since the file name field may * contain `.' or `:'. */ - char *delim = mbsrchr (loc_str, '.'); + char *delim = strrchr (loc_str, '.'); aver (delim); *delim = '\0'; bound->column = atoi (delim+1); - delim = mbsrchr (loc_str, ':'); + delim = strrchr (loc_str, ':'); aver (delim); *delim = '\0'; bound->line = atoi (delim+1);