1
0

008-remove_garbage.patch 564 B

123456789101112131415161718
  1. --- a/ssmtp.c
  2. +++ b/ssmtp.c
  3. @@ -1591,12 +1591,12 @@ int ssmtp(char *argv[])
  4. outbytes += smtp_write(sock, "%s", leadingdot ? b : buf);
  5. } else {
  6. if (log_level > 0) {
  7. - log_event(LOG_INFO, "Sent a very long line in chunks");
  8. + log_event(LOG_INFO, "Sending a partial line");
  9. }
  10. if (leadingdot) {
  11. - outbytes += fd_puts(sock, b, sizeof(b));
  12. + outbytes += fd_puts(sock, b, strlen(b));
  13. } else {
  14. - outbytes += fd_puts(sock, buf, bufsize);
  15. + outbytes += fd_puts(sock, buf, strlen(buf));
  16. }
  17. }
  18. (void)alarm((unsigned) MEDWAIT);