summaryrefslogtreecommitdiffstats
path: root/pciusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'pciusb.c')
-rw-r--r--pciusb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pciusb.c b/pciusb.c
index 0803c2d..971e20b 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -137,6 +137,8 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu
if (!p) { // only calc text & module if not already done
p = buf + offset + 1;
q = strchr(p, '\t');
+ if (!q) // no description field?
+ q = strchr(p, '\0') - 1;
}
if (strncmp(p, "unknown", q-p-1)) {
ifree(e->module);