diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 09:46:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 09:46:21 +0000 |
commit | ef1b3f9682539a42c2f5cd67e47ef048adb5f498 (patch) | |
tree | 5c884e8d5b01bfdc3d2e97ca2e4359449cce652b /usr.sbin/usbdevs/usbdevs.c | |
parent | b19caa201f0c1b7d209365f918f8322db3d568f1 (diff) |
more snprintf
Diffstat (limited to 'usr.sbin/usbdevs/usbdevs.c')
-rw-r--r-- | usr.sbin/usbdevs/usbdevs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/usbdevs/usbdevs.c b/usr.sbin/usbdevs/usbdevs.c index a22f1576e4f..ecce9a5ebfc 100644 --- a/usr.sbin/usbdevs/usbdevs.c +++ b/usr.sbin/usbdevs/usbdevs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdevs.c,v 1.5 2002/05/10 00:09:17 nate Exp $ */ +/* $OpenBSD: usbdevs.c,v 1.6 2002/05/29 09:46:20 deraadt Exp $ */ /* $NetBSD: usbdevs.c,v 1.19 2002/02/21 00:34:31 christos Exp $ */ /* @@ -205,7 +205,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); |