Commit 915ba6e0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use %s even if all strings are currently free of percent characters

parent 7c809307
......@@ -174,7 +174,7 @@ static inline bool demux_IsForced( demux_t *p_demux, const char *psz_name )
#define STANDARD_DEMUX_INIT_MSG( msg ) do { \
DEMUX_INIT_COMMON(); \
msg_Dbg( p_demux, msg ); } while(0)
msg_Dbg( p_demux, "%s", msg ); } while(0)
#define DEMUX_BY_EXTENSION( ext ) \
demux_t *p_demux = (demux_t *)p_this; \
......
......@@ -132,7 +132,7 @@ VLC_EXPORT( int, __intf_Eject, ( vlc_object_t *, const char * ) );
freopen( "CONOUT$", "w", stderr ); \
freopen( "CONIN$", "r", stdin ); \
} \
msg_Info( p_intf, COPYRIGHT_MESSAGE ); \
msg_Info( p_intf, "%s", COPYRIGHT_MESSAGE ); \
msg_Info( p_intf, _("\nWarning: if you can't access the GUI " \
"anymore, open a command-line window, go to the " \
"directory where you installed VLC and run " \
......
......@@ -62,12 +62,12 @@ void Logger::destroy( intf_thread_t *pIntf )
void Logger::error( const string &rMsg )
{
msg_Err( getIntf(), rMsg.c_str() );
msg_Err( getIntf(), "%s", rMsg.c_str() );
}
void Logger::warn( const string &rMsg )
{
msg_Warn( getIntf(), rMsg.c_str() );
msg_Warn( getIntf(), "%s", rMsg.c_str() );
}
......@@ -227,7 +227,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
#endif
/* Announce who we are - Do it only for first instance ? */
msg_Dbg( p_libvlc, COPYRIGHT_MESSAGE );
msg_Dbg( p_libvlc, "%s", COPYRIGHT_MESSAGE );
msg_Dbg( p_libvlc, "libvlc was configured with %s", CONFIGURE_LINE );
/* Initialize mutexes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment