diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-22 20:45:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-22 20:45:34 +0000 |
commit | f061805b49cb8bf9a0b3c702c2f38361ab409a7b (patch) | |
tree | a358350d22901586176eb4b41fae932e608d70cc /sys/compat/sunos/sunos_misc.c | |
parent | ca3846b4ceed3fddd7d1296247107140c9981a96 (diff) |
do not bcopy wrong stuff there
Diffstat (limited to 'sys/compat/sunos/sunos_misc.c')
-rw-r--r-- | sys/compat/sunos/sunos_misc.c | 4 |
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), |