From 9113356173ed569ce22573dc6d1e05c922bf2340 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 15 May 2020 21:29:29 -0700 Subject: Fix crash when selecting Devices->Monitors Spotted while running on Debian 8/PowerPC. Closes #549. Fix by @bp0. --- modules/devices/monitors.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/devices/monitors.c') diff --git a/modules/devices/monitors.c b/modules/devices/monitors.c index 7c64c10a..652d77fd 100644 --- a/modules/devices/monitors.c +++ b/modules/devices/monitors.c @@ -474,10 +474,8 @@ gchar *monitors_get_info() { edid_section ? edid_section : "" ); moreinfo_add_with_prefix(tag_prefix, tag, details); /* moreinfo now owns *details */ - ret = h_strdup_cprintf("$!%s$%s=%s|%s\n", - ret, - tag, m->drm_connection, desc - ); + ret = h_strdup_cprintf("$!%s$%s=%s\n", + ret, tag, m->drm_connection, desc); icons = h_strdup_cprintf("Icon$%s$=%s\n", icons, tag, monitor_icon); g_free(desc); g_free(edid_section); -- cgit v1.2.3