mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix an off-by-one error in g_markup_parse_context_parse(). (#142794,
Tue Jun 1 21:56:31 2004 Matthias Clasen <maclas@gmx.de> * glib/gmarkup.c (advance_char): Fix an off-by-one error in g_markup_parse_context_parse(). (#142794, Morten Welinder)
This commit is contained in:
parent
1cbaf8d913
commit
dfce076fe4
@ -1,3 +1,8 @@
|
||||
Tue Jun 1 22:01:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||
|
||||
Sun May 16 23:23:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Jun 1 22:01:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||
|
||||
Sun May 16 23:23:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Jun 1 22:01:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||
|
||||
Sun May 16 23:23:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Jun 1 22:01:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||
|
||||
Sun May 16 23:23:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue Jun 1 22:01:40 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||
|
||||
Sun May 16 23:23:29 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -662,16 +662,21 @@ unescape_text (GMarkupParseContext *context,
|
||||
static gboolean
|
||||
advance_char (GMarkupParseContext *context)
|
||||
{
|
||||
g_return_val_if_fail (context->iter != context->current_text_end, FALSE);
|
||||
|
||||
context->iter = g_utf8_next_char (context->iter);
|
||||
context->char_number += 1;
|
||||
|
||||
if (context->iter == context->current_text_end)
|
||||
return FALSE;
|
||||
|
||||
if (*context->iter == '\n')
|
||||
{
|
||||
context->line_number += 1;
|
||||
context->char_number = 1;
|
||||
}
|
||||
|
||||
return context->iter != context->current_text_end;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user