From ef079a5b2ef34968fa2fc9c8ecc56fa0193d4add Mon Sep 17 00:00:00 2001 From: gsoares <> Date: Wed, 1 Mar 2017 00:56:30 +0000 Subject: [PATCH] *nargv[] holds an array of pointers, so it should be terminated by a null pointer. ok rzalamena@ reyk@ --- src/usr.sbin/ntpd/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/util.c b/src/usr.sbin/ntpd/util.c index b3ba2874..c7fd0e33 100644 --- a/src/usr.sbin/ntpd/util.c +++ b/src/usr.sbin/ntpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.23 2016/10/03 12:30:43 rzalamena Exp $ */ +/* $OpenBSD: util.c,v 1.24 2017/03/01 00:56:30 gsoares Exp $ */ /* * Copyright (c) 2004 Alexander Guy @@ -177,7 +177,7 @@ start_child(char *pname, int cfd, int argc, char **argv) for (i = 1; i < argc; i++) nargv[nargc++] = argv[i]; - nargv[nargc] = 0; + nargv[nargc] = NULL; switch (pid = fork()) { case -1: