diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-07 08:49:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-07 08:49:21 +0000 |
commit | 6a0d2fe1f44c1b101f0a8a97b06b5e847918cf81 (patch) | |
tree | eacb568ec18ccf958fd2c5066ea3434350c68409 /sys/compat/svr4/svr4_sockio.c | |
parent | 5801cc811db8b51469a64c2c1c289dd02cb663c8 (diff) |
sync with 0504; mostly proto changes (some svr4 ioctl changes)
Diffstat (limited to 'sys/compat/svr4/svr4_sockio.c')
-rw-r--r-- | sys/compat/svr4/svr4_sockio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/compat/svr4/svr4_sockio.c b/sys/compat/svr4/svr4_sockio.c index 21a74af1c72..ed97e86afae 100644 --- a/sys/compat/svr4/svr4_sockio.c +++ b/sys/compat/svr4/svr4_sockio.c @@ -1,5 +1,5 @@ -/* $OpenBSD: svr4_sockio.c,v 1.5 1996/05/02 13:06:53 deraadt Exp $ */ -/* $NetBSD: svr4_sockio.c,v 1.9 1996/04/22 01:17:33 christos Exp $ */ +/* $OpenBSD: svr4_sockio.c,v 1.6 1996/05/07 08:49:20 deraadt Exp $ */ +/* $NetBSD: svr4_sockio.c,v 1.10 1996/05/03 17:09:15 christos Exp $ */ /* * Copyright (c) 1995 Christos Zoulas @@ -132,7 +132,9 @@ svr4_sock_ioctl(fp, p, retval, fd, cmd, data) if ((error = copyin(data, &sr, sizeof(sr))) != 0) return error; - (void) strcpy(br.ifr_name, sr.svr4_ifr_name); + (void) strncpy(br.ifr_name, sr.svr4_ifr_name, + sizeof(br.ifr_name)); + if ((error = (*ctl)(fp, SIOCGIFFLAGS, (caddr_t) &br, p)) != 0) { DPRINTF(("SIOCGIFFLAGS %s: error %d\n", |