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/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo2/menu.c') diff --git a/hardinfo2/menu.c b/hardinfo2/menu.c index 09ced371..61bde7bd 100644 --- a/hardinfo2/menu.c +++ b/hardinfo2/menu.c @@ -108,7 +108,7 @@ void menu_init(Shell *shell) /* Read in the UI from our XML file */ error = NULL; - uidefs_path = g_strdup_printf("%s/hardinfo/uidefs.xml", path_data); + uidefs_path = g_build_filename(path_data, "uidefs.xml", NULL); gtk_ui_manager_add_ui_from_file(menu_manager, uidefs_path, &error); g_free(uidefs_path); -- cgit v1.2.3