]> git.saurik.com Git - bison.git/blobdiff - src/location.c
Pacify -DGNULIB_POSIXCHECK.
[bison.git] / src / location.c
index 361418aedb86c666b3a9002745ea07ee67b1c341..8f1b2807bc125f7f09eda69d252745d0080e7776 100644 (file)
@@ -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 = strrchr (loc_str, '.');
+  char *delim = mbsrchr (loc_str, '.');
   aver (delim);
   *delim = '\0';
   bound->column = atoi (delim+1);
-  delim = strrchr (loc_str, ':');
+  delim = mbsrchr (loc_str, ':');
   aver (delim);
   *delim = '\0';
   bound->line = atoi (delim+1);