blob: 1bacf33150228958b5ad51c0b26b2e0acb7c9793 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-av,v 1.1 2004/01/23 19:34:09 kristerw Exp $
--- csound.c.orig Fri Jan 23 20:13:03 2004
+++ csound.c Fri Jan 23 20:14:09 2004
@@ -696,10 +696,12 @@
if (!tty_attr_set)
inchar_tty_init(); /* initialise terminal if not done yet */
/* otherwise poll stdin for input (currently UNIX only) */
+ {
unsigned char ch;
/* IV - Jan 30 2003 */
if ((int) read(0, &ch, 1) > 0 && (int) ch != '\0')
c = (char) ch;
+ }
#endif
}
/* return whatever was read */
|