From abccc1fc3e385d4e5dae8b52644e0da4ef086679 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 6 Apr 2009 09:10:12 -0300 Subject: Small fixes --- hardinfo2/vendor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hardinfo2/vendor.c') diff --git a/hardinfo2/vendor.c b/hardinfo2/vendor.c index 1515c379..0897341a 100644 --- a/hardinfo2/vendor.c +++ b/hardinfo2/vendor.c @@ -119,13 +119,13 @@ void vendor_init(void) gchar *tmp; gint num_vendors; - DEBUG("loading vendor.conf"); + DEBUG("loading %s", path); vendors = g_key_file_new(); if (g_key_file_load_from_file(vendors, path, 0, NULL)) { num_vendors = g_key_file_get_integer(vendors, "vendors", "number", NULL); - for (i = num_vendors--; i >= 0; i--) { + for (i = num_vendors - 1; i >= 0; i--) { Vendor *v = g_new0(Vendor, 1); tmp = g_strdup_printf("vendor%d", i); -- cgit v1.2.3