diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/basename.c | 2 |
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; } |