# HG changeset patch # User nenolod # Date 1168879897 28800 # Node ID 7d1dc0ca6df84717e74769e0dc99efb9d8325aed # Parent b332cdd2ea433b363b6b21c071d811f6292915aa [svn] - special case for no uri schema diff -r b332cdd2ea43 -r 7d1dc0ca6df8 ChangeLog --- a/ChangeLog Mon Jan 15 08:48:46 2007 -0800 +++ b/ChangeLog Mon Jan 15 08:51:37 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-15 16:48:46 +0000 William Pitcock + revision [3682] + - warning fixes + + trunk/src/audacious/vfs.c | 2 ++ + 1 file changed, 2 insertions(+) + + 2007-01-15 16:44:39 +0000 William Pitcock revision [3680] - g_strsplit() wraps strsplit(3), and thus has different results on diff -r b332cdd2ea43 -r 7d1dc0ca6df8 src/audacious/vfs.c --- a/src/audacious/vfs.c Mon Jan 15 08:48:46 2007 -0800 +++ b/src/audacious/vfs.c Mon Jan 15 08:51:37 2007 -0800 @@ -79,6 +79,8 @@ { vtable = (VFSConstructor *) node->data; + DBG("Does %s match %s?\n", decpath, vtable->uri_id); + if (!strncasecmp(decpath, vtable->uri_id, strlen(vtable->uri_id))) break; } @@ -87,7 +89,10 @@ if (vtable == NULL) return NULL; - file = vtable->vfs_fopen_impl(decpath + strlen(vtable->uri_id), mode); + if (strlen(vtable->uri_id) > 1) + file = vtable->vfs_fopen_impl(decpath + strlen(vtable->uri_id), mode); + else + file = vtable->vfs_fopen_impl(decpath, mode); if (file == NULL) return NULL;