Changeset 23991
- Timestamp:
- 09/29/13 04:06:11 (10 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/global.h
r23987 r23991 5119 5119 { 5120 5120 char *buf = NULL, *buf1 = NULL, *buf2 = NULL; 5121 unsigned char buf3 = '\0';5122 5121 5123 5122 buf = ostrstr(line, searchstr); … … 5135 5134 return NULL; 5136 5135 } 5137 buf3 = buf2[0]; 5138 buf2[0] = '\0'; 5139 buf1 = ostrcat(buf, NULL, 0, 0); 5140 buf2[0] = buf3; 5136 buf1 = strndup(buf, buf2 - buf); 5141 5137 if(buf1 == NULL) 5142 5138 { 5143 err(" ostrcatfailed");5139 err("strndup failed"); 5144 5140 return NULL; 5145 5141 } … … 5161 5157 } 5162 5158 } 5163 buf3 = buf2[0]; 5164 buf2[0] = '\0'; 5165 buf1 = ostrcat(buf, NULL, 0, 0); 5166 buf2[0] = buf3; 5159 buf1 = strndup(buf, buf2 - buf); 5167 5160 if(buf1 == NULL) 5168 5161 { 5169 err(" ostrcatfailed");5162 err("strndup failed"); 5170 5163 return NULL; 5171 5164 } -
titan/titan/skin.h
r23983 r23991 827 827 free(ret); 828 828 829 if(getpic(newnode->pic) == NULL )829 if(getpic(newnode->pic) == NULL && newnode->pic != NULL) 830 830 { 831 831 length = strlen(newnode->pic);
Note: See TracChangeset
for help on using the changeset viewer.