summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-07 21:24:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-07 21:24:15 (GMT)
commit1194c79f2b7ccca24d9f89090722ed1157cbc5e1 (patch)
treec1f2d0cb864c44a4a749ae9c04bf36b55173d846 /src
parentbaec975600e6ef5ce4499b6c79798358dd0f7eff (diff)
Fixed an out-of-bound write when defining portion descriptions.
Diffstat (limited to 'src')
-rw-r--r--src/glibext/gbinportion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glibext/gbinportion.c b/src/glibext/gbinportion.c
index 4a54a9e..b8e3ed7 100644
--- a/src/glibext/gbinportion.c
+++ b/src/glibext/gbinportion.c
@@ -411,8 +411,8 @@ void g_binary_portion_set_desc(GBinPortion *portion, const char *desc)
/* Constitution du rendu */
- portion->text = calloc(4, sizeof(char *));
- portion->lcount = 4;
+ portion->text = calloc(5, sizeof(char *));
+ portion->lcount = 5;
portion->text[0] = strdup("======================================================");
portion->text[1] = strdup("");