From 27c43d4a9b07c3f56d703dea8c8aa199ae7e9a4b Mon Sep 17 00:00:00 2001 From: Dirk Zimmermann Date: Wed, 28 Apr 2021 14:41:28 +0200 Subject: [PATCH] IOS-2794 Dare to use subdataUncopiedWithRange componentsSeparatedByCString --- pantomime-lib/Framework/Pantomime/NSData+Extensions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pantomime-lib/Framework/Pantomime/NSData+Extensions.m b/pantomime-lib/Framework/Pantomime/NSData+Extensions.m index 6f100cf..7ebdd26 100644 --- a/pantomime-lib/Framework/Pantomime/NSData+Extensions.m +++ b/pantomime-lib/Framework/Pantomime/NSData+Extensions.m @@ -764,7 +764,7 @@ static const char *hexDigit = "0123456789ABCDEF"; while (r2.length) { - [aMutableArray addObject: [self subdataWithRange: NSMakeRange(r1.location, r2.location - r1.location)]]; + [aMutableArray addObject: [self subdataUncopiedWithRange: NSMakeRange(r1.location, r2.location - r1.location)]]; r1.location = r2.location + r2.length; r1.length = len - r1.location;