aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/common/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/arch/common/zlib.h')
-rw-r--r--hardinfo2/arch/common/zlib.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/hardinfo2/arch/common/zlib.h b/hardinfo2/arch/common/zlib.h
index 0b83a6a7..3fb7fd17 100644
--- a/hardinfo2/arch/common/zlib.h
+++ b/hardinfo2/arch/common/zlib.h
@@ -53,9 +53,7 @@ benchmark_zlib(void)
glong srclen = 65536;
gchar *bdata_path;
- bdata_path = g_strdup_printf("%s/hardinfo/benchmark.data",
- path_data);
-
+ bdata_path = g_build_filename(path_data, "benchmark.data", NULL);
if (!g_file_get_contents(bdata_path, &tmpsrc, NULL, NULL)) {
g_free(bdata_path);
return g_strdup("[Error]\n"