Navigation Menu

Skip to content

Commit

Permalink
Fix crash when stripping encoding bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Barnett committed Jul 28, 2011
1 parent f2b0235 commit c8e5b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHCSVParser.m
Expand Up @@ -183,7 +183,7 @@ - (void) determineTextEncoding {
fileEncoding = [self textEncodingForData:currentChunk offset:&offset];
if (offset > 0) {
// strip off the text encoding bytes
[currentChunk replaceBytesInRange:NSMakeRange(0, offset) withBytes:NULL];
[currentChunk replaceBytesInRange:NSMakeRange(0, offset) withBytes:NULL length:0];
}
[self extractStringFromCurrentChunk];
}
Expand Down

0 comments on commit c8e5b24

Please sign in to comment.