From f1ccb31bca27f8171a577aa25dabb99aac3abddd Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Apr 2008 21:52:36 +0200 Subject: [PATCH] [markup] Fix bad allocation size Signed-off-by: Julien Danjou --- common/markup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/markup.c b/common/markup.c index 10594d507..35f1a3b0b 100644 --- a/common/markup.c +++ b/common/markup.c @@ -56,7 +56,7 @@ markup_parse_start_element(GMarkupParseContext *context __attribute__ ((unused)) if(!a_strcmp(element_name, p->elements[i])) { for(j = 0; attribute_names[j]; j++); - p->attribute_names[i] = p_new(char *, j); + p->attribute_names[i] = p_new(char *, ++j); p->attribute_values[i] = p_new(char *, j); for(j = 0; attribute_names[j]; j++)