diff options
-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); |