From f6e8b09c24ded7d024dca4563bd4789e0b3c4b05 Mon Sep 17 00:00:00 2001 From: Richard Hult Date: Thu, 5 Jul 2001 10:53:01 +0000 Subject: Allocate one byte for the terminating zero as well. 2001-07-05 Richard Hult * gal/util/e-util.c (e_format_number): Allocate one byte for the terminating zero as well. svn path=/trunk/; revision=10792 --- e-util/e-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-util/e-util.c b/e-util/e-util.c index 82799d280f..fb18db91ca 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -888,7 +888,7 @@ e_format_number (gint number) } if (list) { - value = g_new(char, char_length + (group_count - 1) * strlen(locality->thousands_sep)); + value = g_new(char, 1 + char_length + (group_count - 1) * strlen(locality->thousands_sep)); iterator = list; value_iterator = value; -- cgit v1.2.3