]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/playlist.cpp
Don't crash on items with % in name (Closes:#312)
[vlc] / 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 );