20 lines
532 B
Diff
20 lines
532 B
Diff
diff --git a/src/sound_stuff.c b/src/sound_stuff.c
|
|
index 32ffed7..7ed946e 100644
|
|
--- a/src/sound_stuff.c
|
|
+++ b/src/sound_stuff.c
|
|
@@ -96,12 +96,12 @@ int strsound ( char s1[] )
|
|
int i = 0;
|
|
char s[10];
|
|
if(strlen(s1) > 4) {
|
|
- strcpy(s,&s[strlen(s)-4]);
|
|
+ strcpy(s,&s1[strlen(s1)-4]);
|
|
while (s[i]) {
|
|
s[i] = toupper(s[i]);
|
|
++i;
|
|
}
|
|
- if(strcmp(s,".MP3") || strcmp(s,".OGG")) {
|
|
+ if(!strcmp(s,".MP3") || !strcmp(s,".OGG")) {
|
|
return(1);
|
|
}
|
|
}
|