From owner-freebsd-current Sat Dec 9 22:03:02 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA00360 for current-outgoing; Sat, 9 Dec 1995 22:03:02 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA00259 for ; Sat, 9 Dec 1995 22:02:49 -0800 (PST) Received: from hub.org (hub.org [199.166.238.138]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id UAA01973 for ; Sat, 9 Dec 1995 20:42:43 -0800 Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id XAA15125; Sat, 9 Dec 1995 23:42:41 -0500 (EST) Date: Sat, 9 Dec 1995 23:42:36 -0500 (EST) From: "Marc G. Fournier" To: current@freebsd.org Subject: Erk...another? DEVFS bug Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org Precedence: bulk Hi... Last few I set 'name' as being 8characters, but some of the sprintf's in st.c seem to have the potential of excceeding that. I saw a few commits (by Bruce?) that were defining name as 32, so have used that here. *** scsi/st.c.orig Sat Dec 9 23:39:54 1995 --- scsi/st.c Sat Dec 9 23:40:37 1995 *************** *** 347,352 **** --- 347,355 ---- st_registerdev(int unit) { struct kern_devconf *kdc; + #ifdef DEVFS + char name[32]; + #endif MALLOC(kdc, struct kern_devconf *, sizeof *kdc, M_TEMP, M_NOWAIT); if(!kdc) return; Marc G. Fournier | POP Mail Telnet Acct DNS Hosting scrappy@hub.org | WWW Services Database Services | Knowledge, soon to be: | | Information and scrappy@ki.net | WWW: http://hub.org | Communications, Inc