[gtk/textbuf-serialize-fix-format-string: 2/2] GtkTextBufferSerialize: Add missing format string argument



commit 370d8242e7bc17a9ac417fe0cbca43f8c30d13b7
Author: Felix Riemann <friemann gnome org>
Date:   Sat Apr 27 14:41:48 2019 +0200

    GtkTextBufferSerialize: Add missing format string argument
    
    The format string has two string parameters however only one was supplied.

 gtk/gtktextbufferserialize.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c
index b6cf9b34e8..79aa576958 100644
--- a/gtk/gtktextbufferserialize.c
+++ b/gtk/gtktextbufferserialize.c
@@ -841,7 +841,8 @@ check_id_or_name (GMarkupParseContext  *context,
            {
              set_error (error, context,
                         G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
-                        _("<%s> element has invalid ID \"%s\""), attribute_values[i]);
+                        _("<%s> element has invalid ID \"%s\""),
+                        element_name, attribute_values[i]);
              return FALSE;
            }
        }


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