diff options
author | Jonathan Blandford <jrb@redhat.com> | 2000-02-17 23:33:36 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2000-02-17 23:33:36 +0000 |
commit | ecd7c3923fb86c119fab259676598be3bff61216 (patch) | |
tree | 4ce13e02de6f1199d6e02470b75ccc45424c9cc0 /src/nautilus-index-title.c | |
parent | 4988305f77317ea2302cfd90c40f71b9844576f9 (diff) | |
download | nautilus-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.c | 2 |
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 */ |