- Timestamp:
- Dec 28, 2007, 5:21:57 PM (16 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:
- 7b1d048
- Parents:
- 5376a95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r5376a95 r6201646 369 369 if (count == j) { 370 370 /* just found the end of the field we're looking for */ 371 return(owl_validate_or_convert(n->z_message + save , -1));371 return(owl_validate_or_convert(n->z_message + save)); 372 372 } else { 373 373 save = i + 1; … … 377 377 /* catch the last field, which might not be null terminated */ 378 378 if (count == j - 1) { 379 return owl_validate_or_convert(n->z_message + save, n->z_message_len - save); 379 char *tmp, *out; 380 tmp = owl_malloc(n->z_message_len-save+5); 381 memcpy(tmp, n->z_message+save, n->z_message_len-save); 382 tmp[n->z_message_len-save]='\0'; 383 out = owl_validate_or_convert(tmp); 384 owl_free(tmp); 385 return out; 380 386 } 381 387
Note: See TracChangeset
for help on using the changeset viewer.