From e46568349c49cadc870f5c0fc84dcce2f7c461b1 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 16 Oct 2006 17:53:16 +0000 Subject: Use g_str_equal instead of strcmp. About box cleanups Use g_build_filename instead of building paths on my own Better BinReloc support (should work even if binreloc initialization fails) --- hardinfo2/benchmark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hardinfo2/benchmark.c') diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c index 9bd1fc65..8b4ea0b9 100644 --- a/hardinfo2/benchmark.c +++ b/hardinfo2/benchmark.c @@ -46,8 +46,7 @@ benchmark_include_results(gchar *results, const gchar *benchmark) int i; conf = g_key_file_new(); - bconf_path = g_strdup_printf("%s/hardinfo/benchmark.conf", - path_data); + bconf_path = g_build_filename(path_data, "benchmark.conf", NULL); g_key_file_load_from_file(conf, bconf_path, 0, NULL); machines = g_key_file_get_keys(conf, benchmark, NULL, NULL); -- cgit v1.2.3