From 83387be4a47edbb655bb4a3b5484776a18bd737e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 3 Jun 2007 20:49:26 +0000 Subject: delete two extra lines which are not needed because that is how strings actually work, surprise surprise; ok claudio cnst --- sys/dev/usb/usb_subr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index 12601a6a169..9d702810c78 100644 --- a/sys/dev/usb/usb_subr.c +++ b/sys/dev/usb/usb_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb_subr.c,v 1.49 2007/05/21 05:40:28 jsg Exp $ */ +/* $OpenBSD: usb_subr.c,v 1.50 2007/06/03 20:49:25 deraadt Exp $ */ /* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ @@ -318,8 +318,6 @@ usbd_devinfo(usbd_device_handle dev, int showclass, char *base, size_t len) usbd_printBCD(cp, base + len - cp, bcdDevice); cp += strlen(cp); snprintf(cp, base + len - cp, ", addr %d", dev->address); - cp += strlen(cp); - *cp = 0; } char * -- cgit v1.2.3