diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 11:31:07 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 11:31:07 +0000 |
commit | 1bac7c54c743156268d043ca42facd24848df263 (patch) | |
tree | 1d607ee88ae9c8224b9c863c25bcc800ab889ed3 /usr.sbin | |
parent | 37f76aa3e5ff238d250013edd0e51210bf496977 (diff) |
cast (void) this strlcpy(), it can't fail copying a small constant string
into a much larger buffer
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/delivery_mbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/delivery_mbox.c b/usr.sbin/smtpd/delivery_mbox.c index 13bb2178d86..19cc61e77c4 100644 --- a/usr.sbin/smtpd/delivery_mbox.c +++ b/usr.sbin/smtpd/delivery_mbox.c @@ -1,4 +1,4 @@ -/* $OpenBSD: delivery_mbox.c,v 1.9 2013/05/24 17:03:14 eric Exp $ */ +/* $OpenBSD: delivery_mbox.c,v 1.10 2014/04/19 11:31:06 gilles Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@poolp.org> @@ -57,7 +57,7 @@ delivery_mbox_open(struct deliver *deliver) environ = environ_new; if (deliver->from[0] == '\0') - strlcpy(deliver->from, "MAILER-DAEMON", sizeof deliver->from); + (void)strlcpy(deliver->from, "MAILER-DAEMON", sizeof deliver->from); execle(PATH_MAILLOCAL, PATH_MAILLOCAL, "-f", deliver->from, deliver->to, (char *)NULL, environ_new); perror("execle"); |