From ea4e5f5daf502980c7bbb75d99e356a13927544e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 23 Aug 2005 19:01:43 +0000 Subject: [PATCH] Fixed reading of dumps git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-73 --- ChangeLog | 2 ++ lib/dump.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 93f7520..2a52e8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-08-23 Martin Mares + * lib/dump.c (dump_init): Reading of dumps works again. + * setpci.man, lspci.c, README: prefer spelling "buses" over "busses". * lspci.c: If alloca() is not available, use xmalloc(), not malloc(). diff --git a/lib/dump.c b/lib/dump.c index 02b2ce4..5a5b50e 100644 --- a/lib/dump.c +++ b/lib/dump.c @@ -72,7 +72,7 @@ dump_init(struct pci_access *a) sscanf(buf, "%x: ", &i) == 1) { struct dump_data *dd = dev->aux; - z = strchr(buf, ' ') + 1; + z = strchr(buf, ' '); while (isspace(z[0]) && isxdigit(z[1]) && isxdigit(z[2])) { z++; -- 2.39.5