summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorniels <niels@FreeBSD.org>2005-01-11 08:57:47 +0000
committerniels <niels@FreeBSD.org>2005-01-11 08:57:47 +0000
commit08199e279588fdf36ea01f82a00506c54b02dd86 (patch)
treea3283caaee9927f7474c333938e02fe4f290b4ea /audio
parent92cc1f560ffec0d90ea7d10ee47c91d2e579d858 (diff)
downloadFreeBSD-ports-08199e279588fdf36ea01f82a00506c54b02dd86.zip
FreeBSD-ports-08199e279588fdf36ea01f82a00506c54b02dd86.tar.gz
Fixed overflow (see VuXML) and bumped PORTREVISION.
http://www.vuxml.org/freebsd/877e918e-5362-11d9-96d4-00065be4b5b6.html PR: ports/75231 Submitted by: maintainer Approved by: nectar (mentor)
Diffstat (limited to 'audio')
-rw-r--r--audio/mpg123/Makefile2
-rw-r--r--audio/mpg123/files/patch-aj15
2 files changed, 16 insertions, 1 deletions
diff --git a/audio/mpg123/Makefile b/audio/mpg123/Makefile
index f0d8ff8..0ab03e7 100644
--- a/audio/mpg123/Makefile
+++ b/audio/mpg123/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mpg123
PORTVERSION= 0.59r
-PORTREVISION= 15
+PORTREVISION= 16
CATEGORIES= audio ipv6
MASTER_SITES= http://www.mpg123.de/mpg123/ \
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/
diff --git a/audio/mpg123/files/patch-aj b/audio/mpg123/files/patch-aj
new file mode 100644
index 0000000..d0d827c
--- /dev/null
+++ b/audio/mpg123/files/patch-aj
@@ -0,0 +1,15 @@
+--- mpg123.c.orig Tue Aug 21 19:48:17 2001
++++ mpg123.c Tue Aug 21 19:49:02 2001
+@@ -307,9 +311,9 @@
+ if (line[0]=='\0' || line[0]=='#')
+ continue;
+ if ((listnamedir) && (line[0]!='/') && (line[0]!='\\')){
+- strcpy (linetmp, listnamedir);
+- strcat (linetmp, line);
+- strcpy (line, linetmp);
++ strlcpy (linetmp, listnamedir, sizeof(linetmp));
++ strlcat (linetmp, line, sizeof(linetmp));
++ strlcpy (line, linetmp, sizeof(linetmp));
+ }
+ return (line);
+ }
OpenPOWER on IntegriCloud