From 851bba583269d11d055fcc3701d40492f2abe26b Mon Sep 17 00:00:00 2001 From: Simone Piccardi Date: Mon, 28 Jul 2003 22:16:36 +0000 Subject: [PATCH] Corretti errori nel sovrapportsi di revisioni --- sources/TCP_echo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/TCP_echo.c b/sources/TCP_echo.c index 275d570..46ec5ca 100644 --- a/sources/TCP_echo.c +++ b/sources/TCP_echo.c @@ -26,7 +26,7 @@ * * Usage: echo -h give all info's * - * $Id: TCP_echo.c,v 1.5 2003/07/27 23:41:04 piccardi Exp $ + * $Id: TCP_echo.c,v 1.6 2003/07/28 22:16:36 piccardi Exp $ * ****************************************************************/ /* @@ -144,9 +144,9 @@ void ClientEcho(FILE * filein, int socket) if (nwrite < 0) { printf("Errore in scrittura %s", strerror(errno)); } - nread = FullRead(socket, recvbuff, strlen(sendbuff)); + nread = read(socket, recvbuff, strlen(sendbuff)); if (nread < 0) { - printf("Errore in lettura %s", strerror(errno)); + printf("Errore in lettura %s\n", strerror(errno)); } recvbuff[nread] = 0; if (fputs(recvbuff, stdout) == EOF) { -- 2.30.2