bug in gmarkup.c




around gmarkup.c:1800, in g_markup_parse_context_end_parse(), in case STATE_INSIDE_CLOSE_TAG_NAME, the code needs to be fixed like:

  set_error (context, error, G_MARKUP_ERROR_PARSE,
                 _("Document ended unexpectedly inside the close tag for "
  -                "element '%s'"), current_element);
  +                "element '%s'"), current_element (context));

someone should probably add a GNUC_PRINTF() spec to set_error() in gmarkup.c
to give the compiler a chance to catch such mistakes.

---
ciaoTJ



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