Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix crash when stripping encoding bytes.

  • Loading branch information...
commit c8e5b24b92ca34c7767d74f1c80c283c1e0308f6 1 parent f2b0235
@menial menial authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  CHCSVParser.m
View
2  CHCSVParser.m
@@ -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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.