NGVCardSaxHandler.m (opengroupware-5.5rc2) | : | NGVCardSaxHandler.m (opengroupware-5.5rc3) | ||
---|---|---|---|---|
skipping to change at line 776 | skipping to change at line 776 | |||
return @""; | return @""; | |||
s = [NSString stringWithCharacters:self->content length:self->contentLength]; | s = [NSString stringWithCharacters:self->content length:self->contentLength]; | |||
if (self->content != NULL) { | if (self->content != NULL) { | |||
free(self->content); | free(self->content); | |||
self->content = NULL; | self->content = NULL; | |||
} | } | |||
return s; | return s; | |||
} | } | |||
- (void)characters:(unichar *)_chars length:(int)_len { | - (void)characters:(unichar *)_chars length:(NSUInteger)_len { | |||
if (_len == 0 || _chars == NULL) | if (_len == 0 || _chars == NULL) | |||
return; | return; | |||
if (self->content == NULL) { | if (self->content == NULL) { | |||
/* first content */ | /* first content */ | |||
self->contentLength = _len; | self->contentLength = _len; | |||
self->content = calloc(_len + 1, sizeof(unichar)); | self->content = calloc(_len + 1, sizeof(unichar)); | |||
memcpy(self->content, _chars, (_len * sizeof(unichar))); | memcpy(self->content, _chars, (_len * sizeof(unichar))); | |||
} | } | |||
else { | else { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |