summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-06-22 20:45:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-06-22 20:45:34 +0000
commitf061805b49cb8bf9a0b3c702c2f38361ab409a7b (patch)
treea358350d22901586176eb4b41fae932e608d70cc
parentca3846b4ceed3fddd7d1296247107140c9981a96 (diff)
do not bcopy wrong stuff there
-rw-r--r--sys/compat/sunos/sunos_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c
index 6fc8a842a15..60e2486ed31 100644
--- a/sys/compat/sunos/sunos_misc.c
+++ b/sys/compat/sunos/sunos_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_misc.c,v 1.43 2003/08/15 20:32:16 tedu Exp $ */
+/* $OpenBSD: sunos_misc.c,v 1.44 2004/06/22 20:45:33 deraadt Exp $ */
/* $NetBSD: sunos_misc.c,v 1.65 1996/04/22 01:44:31 christos Exp $ */
/*
@@ -639,7 +639,7 @@ sunos_sys_uname(p, v, retval)
bcopy(hostname, sut.nodename, sizeof(sut.nodename));
sut.nodename[sizeof(sut.nodename)-1] = '\0';
bcopy(osrelease, sut.release, sizeof(sut.release) - 1);
- bcopy("1", sut.version, sizeof(sut.version) - 1);
+ strlcpy(sut.version, "1", sizeof(sut.version));
bcopy(machine, sut.machine, sizeof(sut.machine) - 1);
return copyout((caddr_t)&sut, (caddr_t)SCARG(uap, name),