* Wrote enough of the SMTP sender to get Patriot drooling over it, but not
[citadel.git] / citadel / clientsocket.c
index 710df1a3fcde4f057e607b291618380dc33fdd63..3c5e94caf928db5dd84bb3ce5bbc7a604784f722 100644 (file)
@@ -159,6 +159,7 @@ int sock_gets(int sock, char *buf)
 
        /* Strip any trailing CR and LF characters.
         */
+       buf[i] = 0;
        while ( (strlen(buf)>0)
              && ((buf[strlen(buf)-1]==13)
              || (buf[strlen(buf)-1]==10)) ) {