summaryrefslogtreecommitdiff
path: root/src/nautilus-index-title.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2000-02-17 23:33:36 +0000
committerJonathan Blandford <jrb@src.gnome.org>2000-02-17 23:33:36 +0000
commitecd7c3923fb86c119fab259676598be3bff61216 (patch)
tree4ce13e02de6f1199d6e02470b75ccc45424c9cc0 /src/nautilus-index-title.c
parent4988305f77317ea2302cfd90c40f71b9844576f9 (diff)
downloadnautilus-ecd7c3923fb86c119fab259676598be3bff61216.tar.gz
remember strlen (string) + 1 gives you the length necessary to copy a
2000-02-17 Jonathan Blandford <jrb@redhat.com> * src/nautilus-index-title.c (nautilus_index_title_set_up_label): remember strlen (string) + 1 gives you the length necessary to copy a string, not strlen.
Diffstat (limited to 'src/nautilus-index-title.c')
-rw-r--r--src/nautilus-index-title.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-index-title.c b/src/nautilus-index-title.c
index ed64a71f6..1fab522e6 100644
--- a/src/nautilus-index-title.c
+++ b/src/nautilus-index-title.c
@@ -232,7 +232,7 @@ nautilus_index_title_set_up_label (NautilusIndexTitle *index_title, const char *
split_offset = mid_point - index;
if (split_offset != 0) {
- char *buffer = (char *) g_malloc(strlen(file_name) + 1);
+ char *buffer = (char *) g_malloc(strlen(file_name) + 2);
/* build the new string, with a CR inserted, also remembering them separately for measuring */