Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > 45b12d50fbe74e8265a7c615e0d084d4 > files > 8

ssmtp-2.61-18.fc16.src.rpm

diff -Nupr ssmtp-2.61.orig/ssmtp.c ssmtp-2.61/ssmtp.c
--- ssmtp-2.61.orig/ssmtp.c	2012-06-30 02:18:30.744733188 +0300
+++ ssmtp-2.61/ssmtp.c	2012-06-30 02:21:42.180185189 +0300
@@ -1708,12 +1708,12 @@ int ssmtp(char *argv[])
                        outbytes += smtp_write(sock, "%s", leadingdot ? b : buf);
                } else {
                        if (log_level > 0) {
-                               log_event(LOG_INFO, "Sent a very long line in chunks");
+                               log_event(LOG_INFO, "Sending a partial line");
                        }
                        if (leadingdot) {
-                               outbytes += fd_puts(sock, b, sizeof(b));
+                               outbytes += fd_puts(sock, b, strlen(b));
                        } else {
-                               outbytes += fd_puts(sock, buf, bufsize);
+                               outbytes += fd_puts(sock, buf, strlen(buf));
                        }
                }