From 7e89880e440f5900af5ad111d02a5ad5dcf9cf12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sun, 31 Jan 2010 14:10:12 +0000 Subject: fix build-bug introduced by mrpeach's multibyte read svn path=/trunk/externals/iem/comport/; revision=13121 --- comport/comport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comport/comport.c b/comport/comport.c index ddf188b..1f6ba6a 100644 --- a/comport/comport.c +++ b/comport/comport.c @@ -1138,10 +1138,10 @@ static void comport_tick(t_comport *x) { ioctl(fd, FIONREAD, &count); /* load count with the number of bytes in the receive buffer */ /*err = read(fd,(char *) &serial_byte,1);*/ - err = read(fd,(char *) &serial_byte, count);/* try to read count bytes */ + err = read(fd,(char *) serial_byte, count);/* try to read count bytes */ if (err >= 0) { - for (i = 0; i < err; ++i ) outlet_float(x->x_data_outlet, (t_float) serial_byte); + for (i = 0; i < err; ++i ) outlet_float(x->x_data_outlet, (t_float) serial_byte[i]); } else whicherr = errno; } -- cgit v1.2.1