]> git.sesse.net Git - vlc/commitdiff
Don't crash on items with % in name (Closes:#312)
authorClément Stenac <zorglub@videolan.org>
Sat, 17 Sep 2005 14:15:32 +0000 (14:15 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 17 Sep 2005 14:15:32 +0000 (14:15 +0000)
modules/gui/wxwidgets/playlist.cpp

index ade945fd689ae10c0512448ba2b79fdf957486a0..b17ea0a75144e21b41be54965903e4d30b3a8803 100644 (file)
@@ -504,12 +504,12 @@ void Playlist::UpdateTreeItem( wxTreeItemId item )
 
     if( !strcmp( psz_author, "" ) || p_item->input.b_fixed_name == VLC_TRUE )
     {
-        msg.Printf( wxString( wxU( p_item->input.psz_name ) ) + duration );
+        msg = wxString( wxU( p_item->input.psz_name ) ) + duration;
     }
     else
     {
-        msg.Printf( wxString(wxU( psz_author )) + wxT(" - ") +
-                    wxString(wxU(p_item->input.psz_name)) + duration );
+        msg = wxString(wxU( psz_author )) + wxT(" - ") +
+                    wxString(wxU(p_item->input.psz_name)) + duration;
     }
     free( psz_author );
     treectrl->SetItemText( item , msg );