Modifiche al server di echo per introdurre le stampe di debugging e la
[gapil.git] / listati / ClientEcho.c
index 0a64e94d4b2b8a548e9ffd6e67d4ff2dd2addbe0..cff81bf885f30e78e7e5e7e12a9be2eb5571cba1 100644 (file)
@@ -1,6 +1,6 @@
 void ClientEcho(FILE * filein, int socket) 
 {
-    char sendbuff[MAXLINE], recvbuff[MAXLINE];
+    char sendbuff[MAXLINE+1], recvbuff[MAXLINE+1];
     int nread; 
     while (fgets(sendbuff, MAXLINE, filein) != NULL) {
         FullWrite(socket, sendbuff, strlen(sendbuff));