changeset 752:560292f1ebb3 trunk

[svn] - fix a stupid C++ error
author nenolod
date Wed, 28 Feb 2007 07:32:41 -0800
parents 3c1e835ebd68
children 135c5f03ef8e
files ChangeLog src/console/Audacious_Driver.cxx
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Feb 28 07:29:57 2007 -0800
+++ b/ChangeLog	Wed Feb 28 07:32:41 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-28 15:29:57 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1600]
+  - only claim URLs that actually belong to us. Closes #783.
+  
+  trunk/src/console/Audacious_Driver.cxx |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-02-28 15:01:26 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1598]
   - handle condition where track_name is not there, but stream_name is.
--- a/src/console/Audacious_Driver.cxx	Wed Feb 28 07:29:57 2007 -0800
+++ b/src/console/Audacious_Driver.cxx	Wed Feb 28 07:32:41 2007 -0800
@@ -102,7 +102,7 @@
 	
 	// extract track number
 	gchar* args = strchr( path, '?' ); // TODO: use strrchr()?
-	if ( args && g_ascii_isdigit( args + 1 ) )
+	if ( args && g_ascii_isdigit( (guchar) *(args + 1) ) )
 	{
 		*args = '\0';
 		// TODO: use func with better error reporting, and perhaps don't