diff options
author | des <des@FreeBSD.org> | 2001-07-09 03:37:33 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-07-09 03:37:33 +0000 |
commit | 17faec39c6d35447af4d7a5b9913fb9ca8e02177 (patch) | |
tree | 11db9740b5c24f9725fdaf809b76240508bfda96 /sys/vm/vm_zone.c | |
parent | 2f52ad74cdfcaa675125b6cdb900985198e1a264 (diff) | |
download | FreeBSD-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/vm/vm_zone.c')
-rw-r--r-- | sys/vm/vm_zone.c | 3 |
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); |