Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NSData+Base64.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ + (id)dataWithBase64EncodedString:(NSString *)string;
bytes[length++] = (buffer[2] << 6) | buffer[3];
}

realloc(bytes, length);
bytes = realloc(bytes, length);
return [NSData dataWithBytesNoCopy:bytes length:length];
}

Expand Down Expand Up @@ -111,4 +111,4 @@ - (NSString *)base64Encoding;
return [[NSString alloc] initWithBytesNoCopy:characters length:length encoding:NSASCIIStringEncoding freeWhenDone:YES];
}

@end
@end