From 343f79f71e3304d75345a35bafb7b6cb366abf5a Mon Sep 17 00:00:00 2001 From: YoloMao Date: Fri, 15 Oct 2021 14:54:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E8=BF=94=E5=9B=9E=E5=80=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/Encryption/GrowingDataEncoder.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Services/Encryption/GrowingDataEncoder.m b/Services/Encryption/GrowingDataEncoder.m index 1497f858f..8111c0a6e 100644 --- a/Services/Encryption/GrowingDataEncoder.m +++ b/Services/Encryption/GrowingDataEncoder.m @@ -25,14 +25,14 @@ @implementation GrowingDataEncoder - (NSData *_Nonnull)encryptEventData:(NSData *_Nonnull)data factor:(unsigned char)hint { - NSMutableData *dataM = [[NSMutableData alloc] initWithLength:data.length]; + NSMutableData *result = [[NSMutableData alloc] initWithLength:data.length]; const unsigned char *p = data.bytes; - unsigned char *q = dataM.mutableBytes; + unsigned char *q = result.mutableBytes; for (NSUInteger i = 0; i < data.length; i++, p++, q++) { *q = (*p ^ hint); } - return data; + return result; } @end