/*****************************************************************************
* x11_dragdrop.cpp
*****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teulière <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef X11_SKINS
selection = selection.substr( 0, end - 1 );
// Find the protocol, if any
- string::size_type pos = selection.find( ":", 0 );
- if( selection.find( "///", pos + 1 ) == pos + 1 )
+ if( selection.find( "file://", 0 ) == 0 )
{
- selection.erase( pos + 1, 2 );
+ selection.erase( 0, 7 );
}
char *psz_fileName = new char[selection.size() + 1];