diff options
author | le <le@FreeBSD.org> | 2004-05-24 12:38:54 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2004-05-24 12:38:54 +0000 |
commit | ec80dae8bc7d842d2aacdfef8ac87c7709d10c38 (patch) | |
tree | c48d7959fbacec44143b3b3640f0842d8269d0f3 /usr.sbin/usbdevs | |
parent | dfce012396491580b505cd4d6046f6be14fca38c (diff) | |
download | FreeBSD-src-ec80dae8bc7d842d2aacdfef8ac87c7709d10c38.zip FreeBSD-src-ec80dae8bc7d842d2aacdfef8ac87c7709d10c38.tar.gz |
Diff reduction to NetBSD.
MFNetBSD 1.21; author: itojun
use bounded string op
MFNetBSD 1.22; author: grant
s/netbsd.org/NetBSD.org/i
Obtained from: NetBSD
Diffstat (limited to 'usr.sbin/usbdevs')
-rw-r--r-- | usr.sbin/usbdevs/usbdevs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/usbdevs/usbdevs.c b/usr.sbin/usbdevs/usbdevs.c index 71bf824..0cda38d 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); |