mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
parent
8882750c13
commit
6b9c446b09
2 changed files with 20 additions and 2 deletions
19
srcpkgs/foobillard++/patches/strsound.patch
Normal file
19
srcpkgs/foobillard++/patches/strsound.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,8 +1,7 @@
|
||||||
# Template file for 'foobillard++'
|
# Template file for 'foobillard++'
|
||||||
# often segfaults at launch on musl, but not marking broken yet
|
|
||||||
pkgname=foobillard++
|
pkgname=foobillard++
|
||||||
version=3.42beta
|
version=3.42beta
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-standard"
|
configure_args="--enable-standard"
|
||||||
hostmakedepends="automake pkg-config"
|
hostmakedepends="automake pkg-config"
|
||||||
|
|
Loading…
Add table
Reference in a new issue