From 311f1a718e7cf5e371b3b1c7e4f2a7809e9be6a3 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 31 May 2009 14:59:35 +0000 Subject: Fixed invalid cast from (const char *) to (char *) --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.c b/menu.c index 71f7e70b..0144e40d 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: menu.c,v 1.61 2009-01-08 11:58:33 rofafor Exp $ + * $Id: menu.c,v 1.62 2009-05-31 14:59:35 phintuka Exp $ * */ @@ -94,7 +94,7 @@ static char *ParentDir(const char *dir) static char *LastDir(const char *dir) { - char *pt = strrchr(dir, '/'); + const char *pt = strrchr(dir, '/'); if(pt && pt[0] && pt[1]) return strdup(pt+1); return NULL; -- cgit v1.2.3