Changeset 04166e9 for util.c


Ignore:
Timestamp:
Aug 27, 2007, 7:17:20 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2bdfed9
Parents:
ef9438a
Message:
Don't read before the start of the string for an instance
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r93f65b6 r04166e9  
    768768  start = owl_strdup(start);
    769769  end = start + strlen(start) - 1;
    770   while(*end == 'd' && *(end-1) == '.') {
     770  while(end > start && *end == 'd' && *(end-1) == '.') {
    771771    end -= 2;
    772772  }
Note: See TracChangeset for help on using the changeset viewer.