Changeset 1bb1e67


Ignore:
Timestamp:
Mar 18, 2004, 12:04:29 AM (21 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, 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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rd4b84c0 r1bb1e67  
    22
    332.1.6-pre-1
     4        Fixed three bugs found by Valgrind.
    45        Fixed a case where doing "aim addbuddy" instead of "addbuddy aim"
    56          would cause a segfault.
  • 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);
  • util.c

    r330bcec r1bb1e67  
    611611  }
    612612  ptr2=ptr1+strlen(ptr1)-1;
    613   while (ptr2[0]=='\n' && ptr2>ptr1) {
     613  while (ptr2>ptr1 && ptr2[0]=='\n') {
    614614    ptr2[0]='\0';
    615615    ptr2--;
Note: See TracChangeset for help on using the changeset viewer.