diff options
Diffstat (limited to 'lib/basename.c')
-rw-r--r-- | lib/basename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/basename.c b/lib/basename.c index 56a6c04dd..a47b200e5 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -32,10 +32,10 @@ char * basename (name) - char *name; + const char *name; { char *base; base = strrchr (name, '/'); - return base ? base + 1 : name; + return base ? base + 1 : (char *) name; } |