summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1998-10-05 12:40:42 +0000
committersos <sos@FreeBSD.org>1998-10-05 12:40:42 +0000
commit36a89b7d7adc9c967d6aeb6c9e13f72b1985639c (patch)
tree11e2eab9c4929eaad1c2b8917d8ce0aea5cb9b60 /sys/i386/linux
parent25a96e9479767d898043b735d86ad0d014fd4713 (diff)
downloadFreeBSD-src-36a89b7d7adc9c967d6aeb6c9e13f72b1985639c.zip
FreeBSD-src-36a89b7d7adc9c967d6aeb6c9e13f72b1985639c.tar.gz
In linux_newuname bzero the right type of struct (linux_newuname_t).
Diffstat (limited to 'sys/i386/linux')
-rw-r--r--sys/i386/linux/linux_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c
index 620489e..9fdd923 100644
--- a/sys/i386/linux/linux_misc.c
+++ b/sys/i386/linux/linux_misc.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_misc.c,v 1.43 1998/09/23 14:50:26 jkh Exp $
+ * $Id: linux_misc.c,v 1.44 1998/09/24 13:25:43 jkh Exp $
*/
#include <sys/param.h>
@@ -745,7 +745,7 @@ linux_newuname(struct proc *p, struct linux_newuname_args *args)
#ifdef DEBUG
printf("Linux-emul(%d): newuname(*)\n", p->p_pid);
#endif
- bzero(&linux_newuname, sizeof(struct linux_newuname_args));
+ bzero(&linux_newuname, sizeof(struct linux_newuname_t));
strncpy(linux_newuname.sysname, ostype, 64);
strncpy(linux_newuname.nodename, hostname, 64);
strncpy(linux_newuname.release, osrelease, 64);
OpenPOWER on IntegriCloud