aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-07 13:07:11 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-07 13:07:11 +0200
commit7c797d6023b0054cabb0b78b76a7abe089410e1d (patch)
tree91d81e10767e10d6d2c0fd986d0f034b22f44f2e
parent853df0300105f79e5d1fd2a3192bd879c144a3a5 (diff)
Replaced rindex() with strrchr()
-rw-r--r--FICS/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index ac064f6..05ee795 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -863,7 +863,7 @@ file_wplayer(char *fname)
strlcpy(tmp, fname, sizeof tmp);
- if ((ptr = rindex(tmp, '-')) == NULL)
+ if ((ptr = strrchr(tmp, '-')) == NULL)
return "";
*ptr = '\0';
return tmp;
@@ -874,7 +874,7 @@ file_bplayer(char *fname)
{
char *ptr;
- if ((ptr = rindex(fname, '-')) == NULL)
+ if ((ptr = strrchr(fname, '-')) == NULL)
return "";
return ptr + 1;
}