aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 9fc233f..3668d4b 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -925,7 +925,7 @@ int wrap_contents(struct frame *fr)
/* Split text into paragraphs */
i = 0;
fr->n_paragraphs = 0;
- fr->paragraphs = malloc(max_para * sizeof(struct wrap_line *));
+ fr->paragraphs = malloc(max_para * sizeof(struct boxvec *));
if ( fr->paragraphs == NULL ) {
fprintf(stderr, "Failed to allocate paragraphs\n");
return 1;
@@ -938,7 +938,7 @@ int wrap_contents(struct frame *fr)
if ( fr->n_paragraphs == max_para ) {
max_para += 64;
fr->paragraphs = realloc(fr->paragraphs,
- max_para*sizeof(struct wrap_line *));
+ max_para*sizeof(struct boxvec *));
if ( fr->paragraphs == NULL ) {
fprintf(stderr, "Failed to allocate space"
" for paragraphs\n");