aboutsummaryrefslogtreecommitdiff
path: root/string/basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/basename.c')
-rw-r--r--string/basename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/basename.c b/string/basename.c
index 95bc003846..57a59542ca 100644
--- a/string/basename.c
+++ b/string/basename.c
@@ -23,5 +23,5 @@ char *
basename (const char *filename)
{
char *p = strrchr (filename, '/');
- return p ? p + 1 : filename;
+ return p ? p + 1 : (char *) filename;
}