From 17faec39c6d35447af4d7a5b9913fb9ca8e02177 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 9 Jul 2001 03:37:33 +0000 Subject: Fix missing newline and terminator at the end of the vm.zone sysctl. --- sys/vm/vm_zone.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/vm/vm_zone.c b/sys/vm/vm_zone.c index 5c6431b..79e3fba 100644 --- a/sys/vm/vm_zone.c +++ b/sys/vm/vm_zone.c @@ -451,8 +451,7 @@ sysctl_vm_zone(SYSCTL_HANDLER_ARGS) offset += len; } mtx_unlock(&zone_mtx); - offset--; - *offset = '\0'; + *offset++ = '\0'; error = SYSCTL_OUT(req, tmpbuf, offset - tmpbuf); out: FREE(tmpbuf, M_TEMP); -- cgit v1.1