Skip to content

Commit 3b22d42

Browse files
committed
strictly greater length check in Drafty
1 parent 81e79ad commit 3b22d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TinodeSDK/model/Drafty.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ open class Drafty: Codable, CustomStringConvertible, Equatable {
786786
// Attachment
787787
aFmt.at = -1
788788
aFmt.len = 1
789-
} else if (aFmt.at + aFmt.len >= maxIndex) {
789+
} else if (aFmt.at + aFmt.len > maxIndex) {
790790
// Out of bounds span.
791791
continue
792792
}

0 commit comments

Comments
 (0)