From 02e6d2fde3fed90b0d7bcd18b24442f3f93f0cc7 Mon Sep 17 00:00:00 2001 From: David Binderman Date: Mon, 20 Mar 2023 07:07:56 +0100 Subject: [PATCH] gdm-control: Fix bad parenthesis placement for strncmp --- tools/gdm-control/gdm-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gdm-control/gdm-control.c b/tools/gdm-control/gdm-control.c index db28841d..25fbc509 100644 --- a/tools/gdm-control/gdm-control.c +++ b/tools/gdm-control/gdm-control.c @@ -190,7 +190,7 @@ static gboolean gdm_connect() } response = gdm_send_protocol_msg(GDM_PROTOCOL_MSG_VERSION); - if (!response || strncmp(response, "GDM ", strlen("GDM ") != 0)) { + if (!response || strncmp(response, "GDM ", strlen("GDM ")) != 0) { g_free(response); g_warning("Failed to get protocol version from GDM"); -- 2.34.1