- Update to 1.2.18;
- pass over maintainership to Olexander Kunitsa <kunia@istc.kiev.ua> (maintainer timeout). Submitted by: Olexander Kunitsa <kunia@istc.kiev.ua>
This commit is contained in:
parent
9a97a9c850
commit
f3249b265a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56311
4 changed files with 3 additions and 52 deletions
|
@ -6,12 +6,11 @@
|
|||
#
|
||||
|
||||
PORTNAME= fmio
|
||||
PORTVERSION= 1.1.4
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.2.18
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://www.jumbo.narod.ru/src/fmio/
|
||||
|
||||
MAINTAINER= d.s.div@bigfoot.com
|
||||
MAINTAINER= kunia@istc.kiev.ua
|
||||
|
||||
MAN1= fmio.1
|
||||
MANCOMPRESSED= no
|
||||
|
|
|
@ -1 +1 @@
|
|||
MD5 (fmio-1.1.4.tar.gz) = 78450c7e01c51997607b53dcde3bb0ab
|
||||
MD5 (fmio-1.2.18.tar.gz) = 3260dfb3e9ae3a7baa9912bf26ec1d43
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- Makefile.orig Wed Apr 4 07:10:07 2001
|
||||
+++ Makefile Fri Aug 10 23:25:54 2001
|
||||
@@ -26,7 +26,7 @@
|
||||
install: lib fmio man
|
||||
install -d -o root -g bin $(PREFIX)/bin
|
||||
install -d -o root -g wheel $(PREFIX)/man/man1
|
||||
- install -c -s -o root -g bin -m 4555 fmio $(PREFIX)/bin/fmio
|
||||
+ install -c -s -o root -g bin -m 555 fmio $(PREFIX)/bin/fmio
|
||||
install -c -o root -g bin -m 444 fmio.0 $(PREFIX)/man/cat1/fmio.0
|
||||
|
||||
deinstall:
|
|
@ -1,37 +0,0 @@
|
|||
--- mixer.c.orig Mon Apr 2 23:12:21 2001
|
||||
+++ mixer.c Fri Aug 10 23:22:04 2001
|
||||
@@ -49,6 +49,8 @@
|
||||
static int num_channels;
|
||||
#endif /* __OpenBSD__ || __NetBSD__ */
|
||||
|
||||
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
+
|
||||
static unsigned int volume;
|
||||
|
||||
static int
|
||||
@@ -167,7 +169,7 @@
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
- fprintf(stderr, "Bad numbers %s", q);
|
||||
+ fprintf(stderr, "Bad numbers %s\n", q);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -298,9 +300,13 @@
|
||||
int devlen, dev_volume;
|
||||
|
||||
devlen = strcspn(vol, "=");
|
||||
- strncpy(dev, vol, devlen);
|
||||
- strncpy(val, &vol[devlen+1], strlen(vol)-devlen-1);
|
||||
-
|
||||
+ if (devlen == strlen(vol)) {
|
||||
+ fprintf(stderr, "invalid volume specifier %s\n", vol);
|
||||
+ return -1;
|
||||
+ }
|
||||
+ strlcpy(dev, vol, MIN(devlen + 1, sizeof(dev)));
|
||||
+ strlcpy(val, &vol[devlen+1], MIN(strlen(vol)-devlen, sizeof(val)));
|
||||
+
|
||||
#if defined (__OpenBSD__) || (__NetBSD__)
|
||||
|
||||
for ( ndev = 0 ; ; ndev++ ) {
|
Loading…
Reference in a new issue