summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/mda.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-12-26 17:25:33 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-12-26 17:25:33 +0000
commit3ff4a18b976016ce2fcf3acd1ea75cbdb8b4d62c (patch)
tree400d707a8f5595d7a0a27ce37c57e74e12c07c59 /usr.sbin/smtpd/mda.c
parent346be754b26d1e4a0a5dd7eb10e6fd94d842e081 (diff)
bcopy -> memmove
bzero -> memset
Diffstat (limited to 'usr.sbin/smtpd/mda.c')
-rw-r--r--usr.sbin/smtpd/mda.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c
index 652f7597faa..7aaae726f0d 100644
--- a/usr.sbin/smtpd/mda.c
+++ b/usr.sbin/smtpd/mda.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mda.c,v 1.99 2013/11/28 10:43:37 eric Exp $ */
+/* $OpenBSD: mda.c,v 1.100 2013/12/26 17:25:32 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -253,7 +253,7 @@ mda_imsg(struct mproc *p, struct imsg *imsg)
/* request parent to fork a helper process */
userinfo = &s->user->userinfo;
- bzero(&deliver, sizeof deliver);
+ memset(&deliver, 0, sizeof deliver);
switch (e->method) {
case A_MDA:
deliver.mode = A_MDA;
@@ -628,7 +628,7 @@ mda_getlastline(int fd, char *dst, size_t dstsz)
char *ln, buf[SMTPD_MAXLINESIZE];
size_t len;
- bzero(buf, sizeof buf);
+ memset(buf, 0, sizeof buf);
if (lseek(fd, 0, SEEK_SET) < 0) {
log_warn("warn: mda: lseek");
close(fd);