diff src/audacious/input.c @ 2510:c8d6564f9c82 trunk

[svn] - only strip the subsong identifier if it is really a valid subsong identifier. closes #792.
author nenolod
date Mon, 12 Feb 2007 12:41:51 -0800
parents 87c53f0e9e0d
children cacbc968782b
line wrap: on
line diff
--- a/src/audacious/input.c	Mon Feb 12 10:08:11 2007 -0800
+++ b/src/audacious/input.c	Mon Feb 12 12:41:51 2007 -0800
@@ -429,7 +429,7 @@
 
     tmp = strrchr(tmp_uri, '?');
 
-    if (tmp != NULL)
+    if (tmp != NULL && g_ascii_isdigit(*(tmp + 1)))
         *tmp = '\0';
 
     fd = vfs_buffered_file_new_from_uri(tmp_uri);