There's no need to send a NUL byte to comsat, it NUL-terminates the
buffer itself.
- todd
Index: libexec/mail.local/mail.local.c
===================================================================
RCS file: /cvs/src/libexec/mail.local/mail.local.c,v
retrieving revision 1.34
diff -u -p -u -r1.34 mail.local.c
--- libexec/mail.local/mail.local.c 6 Jul 2015 15:02:51 -0000 1.34
+++ libexec/mail.local/mail.local.c 6 Jul 2015 15:03:55 -0000
@@ -324,7 +324,7 @@ notifybiff(char *msg)
return;
}
- len = strlen(msg) + 1; /* XXX */
+ len = strlen(msg);
if (sendto(f, msg, len, 0, res->ai_addr, res->ai_addrlen) != len)
merr(NOTFATAL, "sendto biff: %s", strerror(errno));
}