Permalink
Browse files

Fix crash when stripping encoding bytes.

  • Loading branch information...
1 parent f2b0235 commit c8e5b24b92ca34c7767d74f1c80c283c1e0308f6 @menial menial committed Jul 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 CHCSVParser.m
View
@@ -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];
}

0 comments on commit c8e5b24

Please sign in to comment.