Changeset 56 for trunk/zoo-kernel
- Timestamp:
- Dec 23, 2010, 4:42:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service.h
r26 r56 133 133 map* tmp=m; 134 134 while(tmp!=NULL){ 135 if(str ncasecmp(tmp->name,key,strlen(key))==0)135 if(strlen(tmp->name)==strlen(key) && strncasecmp(tmp->name,key,strlen(key))==0) 136 136 return true; 137 137 tmp=tmp->next; … … 146 146 maps* tmp=m; 147 147 while(tmp!=NULL){ 148 if(str ncasecmp(tmp->name,key,strlen(key))==0){148 if(strlen(tmp->name)==strlen(key) && strncasecmp(tmp->name,key,strlen(key))==0){ 149 149 return tmp; 150 150 } … … 157 157 map* tmp=m; 158 158 while(tmp!=NULL){ 159 if(str ncasecmp(tmp->name,key,strlen(key))==0){159 if(strlen(tmp->name)==strlen(key) && strncasecmp(tmp->name,key,strlen(key))==0){ 160 160 return tmp; 161 161 } … … 239 239 elements* tmp=e; 240 240 while(tmp!=NULL){ 241 if(str ncasecmp(key,tmp->name,strlen(key))==0)241 if(strlen(tmp->name)==strlen(key) && strncasecmp(key,tmp->name,strlen(key))==0) 242 242 return true; 243 243 tmp=tmp->next; … … 249 249 elements* tmp=m; 250 250 while(tmp!=NULL){ 251 if(str ncasecmp(tmp->name,key,strlen(tmp->name))==0)251 if(strlen(tmp->name)==strlen(key) && strncasecmp(tmp->name,key,strlen(tmp->name))==0) 252 252 return tmp; 253 253 tmp=tmp->next;
Note: See TracChangeset
for help on using the changeset viewer.