diff options
author | Paul Mackerras <paulus@samba.org> | 1995-05-01 04:14:51 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 1995-05-01 04:14:51 +0000 |
commit | afe8abf4a8408a8c66b795582f0ee470027f237b (patch) | |
tree | cef587e2c3ff23e8d7f0845ddadbff2be5192520 | |
parent | 6f128c3ca8cc4d4294ae9932b3b44201d8e9151f (diff) | |
download | ppp-afe8abf4a8408a8c66b795582f0ee470027f237b.tar.gz |
fix put_char for big-endian archs
-rw-r--r-- | chat/chat.c | 5 |
1 files 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 <stdio.h> #include <fcntl.h> @@ -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) { |