From 0b00ed219c3fd2320f2b0145a1513da3a9ce835b Mon Sep 17 00:00:00 2001 From: Erik Welander Date: Tue, 22 May 2018 17:02:39 -0700 Subject: [PATCH] Fix typo in DiffMatchPatchCFUtilities.c --- objectivec/DiffMatchPatchCFUtilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objectivec/DiffMatchPatchCFUtilities.c b/objectivec/DiffMatchPatchCFUtilities.c index eca14e62..0706d27f 100755 --- a/objectivec/DiffMatchPatchCFUtilities.c +++ b/objectivec/DiffMatchPatchCFUtilities.c @@ -488,7 +488,7 @@ CFStringRef diff_linesToCharsMungeCFStringCreate(CFStringRef text, CFMutableArra const UniChar hashChar = (UniChar)hash; CFStringAppendCharacters(chars, &hashChar, 1); } else { - if (CFArrayGetCount(lineArray) == maxLength) { + if (CFArrayGetCount(lineArray) == maxLines) { // Bail out at 65535 because char 65536 == char 0. line = diff_CFStringCreateJavaSubstring(text, lineStart, textLength); lineEnd = textLength;