Changeset 1bb1e67 for text.c


Ignore:
Timestamp:
Mar 18, 2004, 12:04:29 AM (17 years ago)
Author:
Erik Nygren <nygren@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:
1971b59
Parents:
8721756
Message:
Fix two minor issues found by valgrind
File:
1 edited

Legend:

Unmodified
Added
Removed
  • text.c

    r2de4f20 r1bb1e67  
    125125
    126126  /* if the last char wasn't a \n there's one more line */
    127   if (in[i-1]!='\n') lines++;
     127  if (i>0 && in[i-1]!='\n') lines++;
    128128
    129129  return(lines);
Note: See TracChangeset for help on using the changeset viewer.