From: Jim Meyering Date: Sun, 29 Jan 1995 05:32:10 +0000 (+0000) Subject: (extract_regexp): Use strrchr, not rindex. X-Git-Tag: textutils-1_12_1~306 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=faed18c2670bc3da15c899e2bced49bb75984646;p=thirdparty%2Fcoreutils.git (extract_regexp): Use strrchr, not rindex. --- diff --git a/src/csplit.c b/src/csplit.c index 6f0cb4daa1..5ad9933a19 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -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);