[Xineliboutput-cvslog] vdr-xineliboutput frontend.c,1.68,1.69
Brought to you by:
phintuka
From: Petri H. <phi...@us...> - 2009-05-29 14:31:56
|
Update of /cvsroot/xineliboutput/vdr-xineliboutput In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29463 Modified Files: frontend.c Log Message: Fixed invalid cast from (const char *) -> (char *) Index: frontend.c =================================================================== RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/frontend.c,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- frontend.c 16 Feb 2009 16:27:20 -0000 1.68 +++ frontend.c 29 May 2009 14:31:46 -0000 1.69 @@ -600,9 +600,9 @@ if(Setup.FileName()) { cString SetupPath = Setup.FileName(); - char *end = strrchr(SetupPath, '/'); + const char *end = strrchr(SetupPath, '/'); if(end) { - *end = 0; + SetupPath.Truncate(end - (const char *)SetupPath); fd = open(Path=cString::sprintf("%s/plugins/xineliboutput/logo.mpv", *SetupPath), O_RDONLY); } } |