diff -r 65ed49cbc08b -r afc13760179b decoder.c --- a/decoder.c Fri Nov 13 19:27:36 2009 +0800 +++ b/decoder.c Sun Dec 06 08:48:57 2009 +0800 @@ -137,7 +137,7 @@ { // if no title, try to build a reasonable from the filename if(!Title && filename) { - char *s=rindex(filename,'/'); + const char *s=rindex(filename,'/'); if(s && *s=='/') { s++; Title=strdup(s); @@ -147,8 +147,8 @@ if(l>0 && !strcasecmp(Title+l,extention)) Title[l]=0; } else { // strip any extention - s=rindex(Title,'.'); - if(s && *s=='.' && strlen(s)<=5) *s=0; + char *e=rindex(Title,'.'); + if(e && *e=='.' && strlen(e)<=5) *e=0; } d(printf("mp3: faking title '%s' from filename '%s'\n",Title,filename)) }