From afe8abf4a8408a8c66b795582f0ee470027f237b Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 1 May 1995 04:14:51 +0000 Subject: [PATCH] fix put_char for big-endian archs --- chat/chat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chat/chat.c b/chat/chat.c index 62e18f0..208fc44 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -18,7 +18,7 @@ * (614)451-1883 */ -static char rcsid[] = "$Id: chat.c,v 1.6 1995/04/28 06:21:50 paulus Exp $"; +static char rcsid[] = "$Id: chat.c,v 1.7 1995/05/01 04:14:51 paulus Exp $"; #include #include @@ -821,10 +821,11 @@ int put_char(c) int c; { int status; + char ch = c; delay(); - status = write(1, &c, 1); + status = write(1, &ch, 1); switch (status) { -- 2.39.2