You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-plugins/vdr-alcd/files/vdr-alcd-1.5.1-gcc-4.4.diff

23 lines
963 B

Index: alcd-1.5.1/thread.c
===================================================================
--- alcd-1.5.1.orig/thread.c
+++ alcd-1.5.1/thread.c
@@ -104,7 +104,7 @@ void cLCD::SetText( const char *szText )
// only proceed, if valid data
if( szText != NULL && strlen( szText ) > 0 ) {
// set channel name
- char *delim = strchr( szText, '|' );
+ const char *delim = strchr( szText, '|' );
if( delim ) {
char buffer[ BUFSIZE ];
int sLen = ( delim - szText ) >= BUFSIZE ? BUFSIZE : ( delim - szText );
@@ -420,7 +420,7 @@ void cLCD::Replaying( const cControl *co
if( szFileName[i] == ')' )
strncpy( (char *)szReplayMode, szFileName + 8, i - 8 );
}
- char *p = strstr( szFileName + i, " : " );
+ const char *p = strstr( szFileName + i, " : " );
if( p )
strncpy( szTemp, p + 3, sizeof(szTemp ));
else