]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(extract_regexp): Use strrchr, not rindex.
authorJim Meyering <jim@meyering.net>
Sun, 29 Jan 1995 05:32:10 +0000 (05:32 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 29 Jan 1995 05:32:10 +0000 (05:32 +0000)
src/csplit.c

index 6f0cb4daa1aae90ddf8f1fc44b740a9b35e077ac..5ad9933a19ce7a592d5d3ece31654d054005afb8 100644 (file)
@@ -1205,7 +1205,7 @@ extract_regexp (argnum, ignore, str)
   struct control *p;
   const char *err;
 
-  closing_delim = rindex (str + 1, delim);
+  closing_delim = strrchr (str + 1, delim);
   if (closing_delim == NULL)
     error (1, 0, "%s: closing delimeter `%c' missing", str, delim);