Skip to content

Commit 0b00ed2

Browse files
authored
Fix typo in DiffMatchPatchCFUtilities.c
1 parent 41788a5 commit 0b00ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objectivec/DiffMatchPatchCFUtilities.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ CFStringRef diff_linesToCharsMungeCFStringCreate(CFStringRef text, CFMutableArra
488488
const UniChar hashChar = (UniChar)hash;
489489
CFStringAppendCharacters(chars, &hashChar, 1);
490490
} else {
491-
if (CFArrayGetCount(lineArray) == maxLength) {
491+
if (CFArrayGetCount(lineArray) == maxLines) {
492492
// Bail out at 65535 because char 65536 == char 0.
493493
line = diff_CFStringCreateJavaSubstring(text, lineStart, textLength);
494494
lineEnd = textLength;

0 commit comments

Comments
 (0)