mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 17:20:21 +00:00
Replace g_strdup_printf with g_build_filename where possible
This commit is contained in:
@@ -281,7 +281,7 @@ menu_quick_item (char *cmd, char *label, GtkWidget * menu, int flags,
|
||||
else
|
||||
{
|
||||
/* try relative to <xdir> */
|
||||
path = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s", get_xdir (), icon);
|
||||
path = g_build_filename (get_xdir (), icon, NULL);
|
||||
if (access (path, R_OK) == 0)
|
||||
img = gtk_image_new_from_file (path);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user