aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-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;
}