gdm-control: Fix bad parenthesis placement for strncmp
authorDavid Binderman <dcb314@hotmail.com>
Mon, 20 Mar 2023 06:07:56 +0000 (07:07 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Mon, 20 Mar 2023 06:28:02 +0000 (07:28 +0100)
tools/gdm-control/gdm-control.c

index db28841d78efc20bf03ce3c3864e382d6c7f988b..25fbc509a5ed8b4f955ce7c2a8a86aeeece9c2eb 100644 (file)
@@ -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");