[gtk/wip/otte/json: 84/85] xxx 59fc8d42
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/json: 84/85] xxx 59fc8d42
- Date: Thu, 9 Dec 2021 14:53:32 +0000 (UTC)
commit 9f368a940f04f9b3b986a97120413f03cb276cd0
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 9 15:42:56 2021 +0100
xxx 59fc8d42
gtk/json/gtkjsonparser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/json/gtkjsonparser.c b/gtk/json/gtkjsonparser.c
index a7146c8fc0..0b843dfe81 100644
--- a/gtk/json/gtkjsonparser.c
+++ b/gtk/json/gtkjsonparser.c
@@ -895,7 +895,7 @@ gtk_json_parser_parse_value (GtkJsonParser *self)
(self->block->value[0] == '.' || self->block->value[0] == '+') &&
g_ascii_isdigit (self->block->value[1]))
{
- const guchar *end = self->block->value + 3;
+ const guchar *end = self->block->value + 2;
while (end < self->end && g_ascii_isalnum (*end))
end++;
gtk_json_parser_syntax_error_at (self, self->block->value, end, "Numbers may not start with '%c'",
*self->block->value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]