1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
diff -u ssmtp-2.61.orig/ssmtp.c ssmtp-2.61/ssmtp.c --- ssmtp-2.61.orig/ssmtp.c 2004-07-22 23:58:48.000000000 -0600 +++ ssmtp-2.61/ssmtp.c 2006-05-04 22:56:35.000000000 -0600 @@ -480,6 +480,11 @@ die("from_format() -- snprintf() failed"); } } + else { + if(snprintf(buf, BUF_SZ, "%s", str) == -1) { + die("from_format() -- snprintf() failed"); + } + } } #if 0