summaryrefslogtreecommitdiff
path: root/sys/compat/common/kern_info_09.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/common/kern_info_09.c')
-rw-r--r--sys/compat/common/kern_info_09.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/compat/common/kern_info_09.c b/sys/compat/common/kern_info_09.c
index b9188999a44..e0e568c5186 100644
--- a/sys/compat/common/kern_info_09.c
+++ b/sys/compat/common/kern_info_09.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: kern_info_09.c,v 1.2 1996/02/26 23:26:51 niklas Exp $ */
-/* $NetBSD: kern_info_09.c,v 1.4 1996/02/04 02:02:14 christos Exp $ */
+/* $OpenBSD: kern_info_09.c,v 1.3 1996/03/03 05:26:22 mickey Exp $ */
+/* $NetBSD: kern_info_09.c,v 1.5 1996/02/21 00:10:59 cgd Exp $ */
/*
* Copyright (c) 1982, 1986, 1991, 1993
@@ -61,10 +61,11 @@ compat_09_sys_getdomainname(p, v, retval)
syscallarg(int) len;
} */ *uap = v;
int name;
+ size_t sz;
name = KERN_DOMAINNAME;
- return (kern_sysctl(&name, 1, SCARG(uap, domainname),
- &SCARG(uap, len), 0, 0, p));
+ sz = SCARG(uap,len);
+ return (kern_sysctl(&name, 1, SCARG(uap, domainname), &sz, 0, 0, p));
}