"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "SOPE/sope-ical/NGiCal/NGVCardSaxHandler.m" between
opengroupware-5.5rc2.tar.gz and opengroupware-5.5rc3.tar.gz

About: OpenGroupware is a branch of the "traditional" OpenGroupware collaboration system (developed in Objective-C on SOPE). Release candidate.

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

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS