Changeset 1bb1e67 for util.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
  • 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.