From 4844094aca6e108dca9782c864bf24aba4dbd669 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 5 Aug 2011 16:19:01 +0000 Subject: Use STDOUT_FILENO instead of 1 in con_tty.c --- src/sys/con_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys/con_tty.c b/src/sys/con_tty.c index 8ab09256..20afab4c 100644 --- a/src/sys/con_tty.c +++ b/src/sys/con_tty.c @@ -358,8 +358,8 @@ char *CON_Input( void ) Q_strncpyz(text, TTY_con.buffer, sizeof(text)); Field_Clear(&TTY_con); key = '\n'; - write(1, &key, 1); - write( 1, "]", 1 ); + write(STDOUT_FILENO, &key, 1); + write(STDOUT_FILENO, "]", 1); return text; } if (key == '\t') -- cgit