summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorVitaliy Makkoveev <mvs@cvs.openbsd.org>2024-08-23 01:31:05 +0000
committerVitaliy Makkoveev <mvs@cvs.openbsd.org>2024-08-23 01:31:05 +0000
commite0f2f4ac4f472b08bc8dd33f37c6d4489d5a026f (patch)
tree05cc3418310f133a763474628c1c97f1a77095af /sys/kern
parentad866257a7b6df761840e8f51bca8c5d4ecaf31f (diff)
Fix KERN_AUDIO broken in rev 1.440.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 68d6b64c813..7d163312fb2 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.443 2024/08/22 10:08:25 mvs Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.444 2024/08/23 01:31:04 mvs Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -487,7 +487,7 @@ kern_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
switch (name[0]) {
#if NAUDIO > 0
case KERN_AUDIO:
- return (sysctl_audio(name, namelen, oldp, oldlenp,
+ return (sysctl_audio(name + 1, namelen - 1, oldp, oldlenp,
newp, newlen));
#endif
default: