aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index f335ab5..97887c3 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -778,16 +778,18 @@ PUBLIC int file_has_pname(char *fname, char *plogin)
return 0;
}
-PUBLIC char *file_wplayer(char *fname)
-{
- static char tmp[MAX_FILENAME_SIZE];
- char *ptr;
- strcpy(tmp, fname);
- ptr = rindex(tmp, '-');
- if (!ptr)
- return "";
- *ptr = '\0';
- return tmp;
+PUBLIC char *
+file_wplayer(char *fname)
+{
+ char *ptr;
+ static char tmp[MAX_FILENAME_SIZE];
+
+ strcpy(tmp, fname);
+
+ if ((ptr = rindex(tmp, '-')) == NULL)
+ return "";
+ *ptr = '\0';
+ return tmp;
}
PUBLIC char *