aboutsummaryrefslogtreecommitdiff
path: root/toys/other/lsusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/lsusb.c')
-rw-r--r--toys/other/lsusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/lsusb.c b/toys/other/lsusb.c
index 07886e8c..031dbd93 100644
--- a/toys/other/lsusb.c
+++ b/toys/other/lsusb.c
@@ -24,7 +24,7 @@ static int list_device(struct dirtree *new)
if (!new->parent) return DIRTREE_RECURSE;
if (new->name[0] == '.') return 0;
name = dirtree_path(new, 0);
- snprintf(toybuf, sizeof(toybuf), "%s/%s", name, "/uevent");
+ sprintf(toybuf, "%s/uevent", name);
file = fopen(toybuf, "r");
if (file) {
int count = 0;