From: Simone Piccardi Date: Mon, 28 Jul 2003 22:16:36 +0000 (+0000) Subject: Corretti errori nel sovrapportsi di revisioni X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=commitdiff_plain;h=851bba583269d11d055fcc3701d40492f2abe26b Corretti errori nel sovrapportsi di revisioni --- 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) {