You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
564 B

  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);