services_mkdb: pad argument to cdbw_output(3) to match it's prototype

This commit is contained in:
tnn 2023-08-07 20:21:08 +00:00
parent 123b9ede20
commit f65c21d7bf
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: output_cdb.c,v 1.1 2010/04/25 00:54:46 joerg Exp $ */ /* $NetBSD: output_cdb.c,v 1.2 2023/08/07 20:21:08 tnn Exp $ */
/*- /*-
* Copyright (c) 2010 The NetBSD Foundation, Inc. * Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -143,7 +143,7 @@ cdb_close(void)
rv = 0; rv = 0;
serrno = errno; serrno = errno;
if (cdbw_output(cdbw, cdbw_fd, "services(5)", NULL)) { if (cdbw_output(cdbw, cdbw_fd, "services(5)\0\0\0\0", NULL)) {
rv = -1; rv = -1;
serrno = errno; serrno = errno;
} }