From owner-freebsd-audit Sun Oct 8 20:45:52 2000 Delivered-To: freebsd-audit@freebsd.org Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.161.193]) by hub.freebsd.org (Postfix) with ESMTP id D45C137B502 for ; Sun, 8 Oct 2000 20:45:50 -0700 (PDT) Received: from mail.vt.edu (gkar.cc.vt.edu [198.82.161.190]) by lennier.cc.vt.edu (8.11.0/8.11.0) with ESMTP id e993jot54065 for ; Sun, 8 Oct 2000 23:45:50 -0400 (EDT) Received: from muriel.penguinpowered.com ([198.82.100.195]) by gkar.cc.vt.edu (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0G250026G94DXR@gkar.cc.vt.edu> for FreeBSD-audit@freebsd.org; Sun, 8 Oct 2000 23:45:49 -0400 (EDT) Date: Sun, 08 Oct 2000 23:40:46 -0400 (EDT) From: Mike Heffner Subject: Small fix for usbhidctl To: FreeBSD-audit Message-id: MIME-version: 1.0 X-Mailer: XFMail 1.4.4 on FreeBSD Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 8bit X-Priority: 3 (Normal) Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Fixes command line overflow. --- usbhid.c.orig Sun Oct 8 22:04:53 2000 +++ usbhid.c Sun Oct 8 22:23:49 2000 @@ -311,9 +311,9 @@ if (dev[0] != '/') { if (isdigit(dev[0])) - sprintf(devname, "/dev/uhid%s", dev); + snprintf(devname, sizeof(devname), "/dev/uhid%s", dev); else - sprintf(devname, "/dev/%s", dev); + snprintf(devname, sizeof(devname), "/dev/%s", dev); dev = devname; } -- Mike Heffner Fredericksburg, VA ICQ# 882073 http://my.ispchannel.com/~mheffner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message