aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/usbdevs
diff options
context:
space:
mode:
authorLukas Ertl <le@FreeBSD.org>2004-05-24 12:38:54 +0000
committerLukas Ertl <le@FreeBSD.org>2004-05-24 12:38:54 +0000
commit835f98334837674df4e27224f2a10444a7c817d6 (patch)
treec48d7959fbacec44143b3b3640f0842d8269d0f3 /usr.sbin/usbdevs
parent3ff0fa2ac505443433dec3d0eb4c34b771b8fd27 (diff)
Notes
Diffstat (limited to 'usr.sbin/usbdevs')
-rw-r--r--usr.sbin/usbdevs/usbdevs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/usbdevs/usbdevs.c b/usr.sbin/usbdevs/usbdevs.c
index 71bf824d9bb51..0cda38d94d3c4 100644
--- a/usr.sbin/usbdevs/usbdevs.c
+++ b/usr.sbin/usbdevs/usbdevs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdevs.c,v 1.17 2001/02/19 23:22:48 cgd Exp $ */
+/* $NetBSD: usbdevs.c,v 1.22 2003/11/12 13:31:08 grant Exp $ */
/* $FreeBSD$ */
/*
@@ -6,7 +6,7 @@
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
- * by Lennart Augustsson (augustss@netbsd.org).
+ * by Lennart Augustsson (augustss@NetBSD.org).
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -201,7 +201,7 @@ main(int argc, char **argv)
if (dev == 0) {
for (ncont = 0, i = 0; i < 10; i++) {
- sprintf(buf, "%s%d", USBDEV, i);
+ snprintf(buf, sizeof(buf), "%s%d", USBDEV, i);
f = open(buf, O_RDONLY);
if (f >= 0) {
dumpone(buf, f, addr);