Skip to content

Commit

Permalink
Fix NSSecureCoding adoption in SNTFileAccessEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw committed May 21, 2024
1 parent d8928ac commit 2a4c1b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/common/SNTFileAccessEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ + (BOOL)supportsSecureCoding {
}

- (void)encodeWithCoder:(NSCoder *)coder {
[super encodeWithCoder:coder];
ENCODE(accessedPath);
ENCODE(ruleVersion);
ENCODE(ruleName);
ENCODE(application);
}

- (instancetype)initWithCoder:(NSCoder *)decoder {
self = [super init];
self = [super initWithCoder:decoder];
if (self) {
DECODE(accessedPath, NSString);
DECODE(ruleVersion, NSString);
Expand Down

0 comments on commit 2a4c1b5

Please sign in to comment.