int ClipPopupDelete::handle_event()
{
popup->gui->unlock_window();
- mwindow->remove_assets_from_project(1, 1,
- mwindow->session->drag_assets,
+ mwindow->remove_assets_from_project(1, 1, 0, 0,
mwindow->session->drag_clips);
popup->gui->lock_window("ClipPopupDelete::handle_event");
return 1;
}
else {
char *cp = strchr(string, '\n');
- if( cp-string < 32 ) *cp = 0;
+ if( cp && cp-string < 32 ) *cp = 0;
else if( len > 32 ) string[32] = 0;
eprintf("paste buffer is not EDL:\n%s", string);
}