diff options
author | Richard Hult <rhult@codefactory.se> | 2001-07-05 18:53:01 +0800 |
---|---|---|
committer | Richard Hult <rhult@src.gnome.org> | 2001-07-05 18:53:01 +0800 |
commit | f6e8b09c24ded7d024dca4563bd4789e0b3c4b05 (patch) | |
tree | ba48c637608d3295bd37126c85fbda3db862dd86 /e-util/e-util.c | |
parent | 6d4840cae85e64b40af1a8da70fb600d3220c108 (diff) | |
download | gsoc2013-evolution-f6e8b09c24ded7d024dca4563bd4789e0b3c4b05.tar.gz gsoc2013-evolution-f6e8b09c24ded7d024dca4563bd4789e0b3c4b05.tar.zst gsoc2013-evolution-f6e8b09c24ded7d024dca4563bd4789e0b3c4b05.zip |
Allocate one byte for the terminating zero as well.
2001-07-05 Richard Hult <rhult@codefactory.se>
* gal/util/e-util.c (e_format_number): Allocate one byte for the
terminating zero as well.
svn path=/trunk/; revision=10792
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |