X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FTCP_echo.c;fp=sources%2FTCP_echo.c;h=275d570c1739d423f9a79fdcae0826f200add939;hp=84929865fcdf2e789db62e46fda332d615bdfdd9;hb=49ae2790472cc2ad1e54ea26d037306598f9c83b;hpb=a0baefcdc1505ecb62f6336acef1153bb56eaf73 diff --git a/sources/TCP_echo.c b/sources/TCP_echo.c index 8492986..275d570 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.4 2003/07/27 15:20:45 piccardi Exp $ + * $Id: TCP_echo.c,v 1.5 2003/07/27 23:41:04 piccardi Exp $ * ****************************************************************/ /* @@ -144,7 +144,7 @@ void ClientEcho(FILE * filein, int socket) if (nwrite < 0) { printf("Errore in scrittura %s", strerror(errno)); } - nread = read(socket, recvbuff, strlen(sendbuff)); + nread = FullRead(socket, recvbuff, strlen(sendbuff)); if (nread < 0) { printf("Errore in lettura %s", strerror(errno)); }