blob: 63585b91beea96703653c46f74c7de3ce05a4b03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ab,v 1.3 1999/07/18 19:23:55 tron Exp $
--- 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);
+ if (xfermem_block(XF_WRITER, buffermem) == XF_CMD_TERMINATE) {
+ intflag = TRUE;
+ }
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);
}
|