[glib/glib-2-64: 5/7] gdbusmessage: Fix swapped signatures in error messages



commit 72e1d3c96405e1245974dee4f6e5f4745836c568
Author: Philip Withnall <withnall endlessm com>
Date:   Fri Apr 3 12:42:49 2020 +0100

    gdbusmessage: Fix swapped signatures in error messages
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Fixes: #2081

 gio/gdbusmessage.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
index 6e3bd8bf4..4680ee7f4 100644
--- a/gio/gdbusmessage.c
+++ b/gio/gdbusmessage.c
@@ -2786,7 +2786,7 @@ g_dbus_message_to_blob (GDBusMessage          *message,
                        G_IO_ERROR,
                        G_IO_ERROR_INVALID_ARGUMENT,
                        _("Message body has signature “%s” but there is no signature header"),
-                       signature_str);
+                       g_variant_get_type_string (message->body));
           goto out;
         }
       tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
@@ -2796,7 +2796,7 @@ g_dbus_message_to_blob (GDBusMessage          *message,
                        G_IO_ERROR,
                        G_IO_ERROR_INVALID_ARGUMENT,
                        _("Message body has type signature “%s” but signature in the header field is “%s”"),
-                       tupled_signature_str, g_variant_get_type_string (message->body));
+                       g_variant_get_type_string (message->body), tupled_signature_str);
           g_free (tupled_signature_str);
           goto out;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]