Changeset af2ca19 for viewwin.c


Ignore:
Timestamp:
Sep 16, 2002, 6:13:41 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
62f24bc
Parents:
42abb10
Message:
Fixed memory leak and buffer overrun in fmtext
File:
1 edited

Legend:

Unmodified
Added
Removed
  • viewwin.c

    r1aee7d9 raf2ca19  
    5555  wmove(v->curswin, 0, 0);
    5656
     57  owl_fmtext_init_null(&fm1);
     58  owl_fmtext_init_null(&fm2);
     59 
    5760  owl_fmtext_truncate_lines(&(v->fmtext), v->topline, v->winlines-BOTTOM_OFFSET, &fm1);
    5861  owl_fmtext_truncate_cols(&fm1, v->rightshift, v->wincols-1+v->rightshift, &fm2);
     
    7477    doupdate();
    7578  }
     79
     80  owl_fmtext_free(&fm1);
     81  owl_fmtext_free(&fm2);
    7682}
    7783
Note: See TracChangeset for help on using the changeset viewer.