Commit 830c44d6 authored by Clément Stenac's avatar Clément Stenac

Don't crash on items with % in name (Closes:#312)

parent ebe4a155
......@@ -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 );
......
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