Changeset f166580
- Timestamp:
- Feb 23, 2007, 3:25:53 PM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- cc5b906
- Parents:
- 59916e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
util.c
r59916e8 rf166580 743 743 char * owl_util_baseclass(char * class) 744 744 { 745 char *newClass;746 745 char *ret; 747 746 char *start, *end; 748 747 749 start = newClass = owl_strdup(class);748 start = class; 750 749 while(!strncmp(start, "un", 2)) { 751 750 start += 2; 752 751 } 752 753 start = owl_strdup(start); 753 754 end = start + strlen(start) - 1; 754 755 while(*end == 'd' && *(end-1) == '.') { … … 757 758 *(end + 1) = 0; 758 759 759 ret = owl_strdup(start); 760 owl_free(newClass); 761 762 return ret; 760 return start; 763 761 } 764 762
Note: See TracChangeset
for help on using the changeset viewer.