Skip to content

Commit dba2de8

Browse files
authored
fix: Replace string literal with NSData for newline in breadcrumb processor (#6127)
1 parent 35f71f4 commit dba2de8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Sentry/Processors/SentryWatchdogTerminationBreadcrumbProcessor.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ - (void)storeBreadcrumb:(NSData *_Nonnull)data
104104
fileSize = [self.fileHandle seekToEndOfFile];
105105

106106
[self.fileHandle writeData:data];
107-
[self.fileHandle writeData:[@"\n" dataUsingEncoding:NSASCIIStringEncoding]];
107+
NSData *_Nonnull const newLineData = [NSData dataWithBytes:"\n" length:1];
108+
[self.fileHandle writeData:newLineData];
108109

109110
self.breadcrumbCounter += 1;
110111
} @catch (NSException *exception) {

0 commit comments

Comments
 (0)