diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 8f4be38dcdc1..60d0aba6bda1 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1 +1 @@ -revision 1.37 intentionally removed +revision 1.38 intentionally removed diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 801d594455aa..02daff93eb71 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)kern_xxx.c 7.17 (Berkeley) 4/20/91 - * $Id: kern_xxx.c,v 1.11 1994/03/01 07:58:28 glass Exp $ + * $Id: kern_xxx.c,v 1.12 1994/03/18 18:57:15 mycroft Exp $ */ #include @@ -166,9 +166,9 @@ uname(p, uap, retval) struct uname_args *uap; int *retval; { - bcopy(hostname, utsname.nodename, sizeof(utsname.nodename)); - utsname.nodename[sizeof(utsname.nodename)-1] = '\0'; - return (copyout((caddr_t)&utsname, (caddr_t)uap->name, sizeof(struct utsname))); + strncpy(utsname.nodename, hostname, sizeof(utsname.nodename)-1); + return (copyout((caddr_t)&utsname, (caddr_t)uap->name, + sizeof(struct utsname))); } struct reboot_args {