diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-12-17 05:06:29 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-12-17 05:06:29 +0000 |
commit | b44956e30be4e6576489a64e05343069fd07d608 (patch) | |
tree | ff760d0c7f4f6220abd4f55229185522768a5118 /usr.sbin | |
parent | d8add5ef378fefb5227fed9e61d8ac7d99b96cfc (diff) |
terminate an arg vector w/ NULL
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/mailwrapper/mailwrapper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/mailwrapper/mailwrapper.c b/usr.sbin/mailwrapper/mailwrapper.c index 221f86f28b7..10d4267fd84 100644 --- a/usr.sbin/mailwrapper/mailwrapper.c +++ b/usr.sbin/mailwrapper/mailwrapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mailwrapper.c,v 1.5 1999/09/28 15:25:45 ho Exp $ */ +/* $OpenBSD: mailwrapper.c,v 1.6 1999/12/17 05:06:28 mickey Exp $ */ /* $NetBSD: mailwrapper.c,v 1.2 1999/02/20 22:10:07 thorpej Exp $ */ /* @@ -121,6 +121,8 @@ main(argc, argv, envp) for (len = 0; len < argc; len++) addarg(&al, argv[len], 0); + addarg(&al, NULL, 0); + if ((config = fopen(_PATH_MAILERCONF, "r")) == NULL) { openlog("mailwrapper", LOG_PID, LOG_MAIL); syslog(LOG_INFO, "can't open %s, using %s as default MTA", |