summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-07-09 03:37:33 +0000
committerdes <des@FreeBSD.org>2001-07-09 03:37:33 +0000
commit17faec39c6d35447af4d7a5b9913fb9ca8e02177 (patch)
tree11db9740b5c24f9725fdaf809b76240508bfda96 /sys
parent2f52ad74cdfcaa675125b6cdb900985198e1a264 (diff)
downloadFreeBSD-src-17faec39c6d35447af4d7a5b9913fb9ca8e02177.zip
FreeBSD-src-17faec39c6d35447af4d7a5b9913fb9ca8e02177.tar.gz
Fix missing newline and terminator at the end of the vm.zone sysctl.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_zone.c3
1 files changed, 1 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud