summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-07-18 19:23:54 +0000
committertron <tron@pkgsrc.org>1999-07-18 19:23:54 +0000
commit63d7bacea1b276fd9932e4356ca85c10ae6ec91f (patch)
tree59b7a0872595c056da878a04dff05c00b5618bf7 /audio
parent48361d072ef2f66412b1dd3067b6ef5fa266093d (diff)
downloadpkgsrc-63d7bacea1b276fd9932e4356ca85c10ae6ec91f.tar.gz
Fix bug which caused a segmentation fault if "mpg123" was started without
a tty. Patch supply by the author Michael Hipp.
Diffstat (limited to 'audio')
-rw-r--r--audio/mpg123/files/patch-sum4
-rw-r--r--audio/mpg123/patches/patch-ab18
2 files changed, 15 insertions, 7 deletions
diff --git a/audio/mpg123/files/patch-sum b/audio/mpg123/files/patch-sum
index 84035e0be8d..8fa627c1e40 100644
--- a/audio/mpg123/files/patch-sum
+++ b/audio/mpg123/files/patch-sum
@@ -1,6 +1,6 @@
-$NetBSD: patch-sum,v 1.2 1999/07/10 20:57:55 mjl Exp $
+$NetBSD: patch-sum,v 1.3 1999/07/18 19:23:54 tron Exp $
MD5 (patch-aa) = 2ad027ae077519f575176a293a3ef238
-MD5 (patch-ab) = 3c795b1191e38f1f08f152c96a3759a4
+MD5 (patch-ab) = d2be05cddc78b15c1dda564dde29d693
MD5 (patch-ac) = 9a9e6fa9d340799ea1fe5d47ab968e3c
MD5 (patch-af) = 06e9535d499a87e5da14fb8ee59d9fc6
diff --git a/audio/mpg123/patches/patch-ab b/audio/mpg123/patches/patch-ab
index 9c5b324f5c2..63585b91bee 100644
--- a/audio/mpg123/patches/patch-ab
+++ b/audio/mpg123/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 10:35:59 agc Exp $
+$NetBSD: patch-ab,v 1.3 1999/07/18 19:23:55 tron Exp $
---- mpg123.c Wed Feb 11 23:15:08 1998
-+++ mpg123.c Mon Apr 27 16:40:40 1998
-@@ -161,6 +161,9 @@
+--- mpg123.c.orig Tue Jun 15 22:21:36 1999
++++ mpg123.c Sun Jul 18 21:20:19 1999
+@@ -177,6 +177,9 @@
_exit(0);
default: /* parent */
xfermem_init_writer (buffermem);
@@ -12,4 +12,12 @@ $NetBSD: patch-ab,v 1.2 1998/08/07 10:35:59 agc Exp $
param.outmode = DECODE_BUFFER;
}
}
-
+@@ -918,7 +921,7 @@
+ {
+ const char *term_type;
+ term_type = getenv("TERM");
+- if (!strcmp(term_type,"xterm"))
++ if (term_type && !strcmp(term_type,"xterm"))
+ {
+ fprintf(stderr, "\033]0;%s\007", filename);
+ }