From afd03f7bf5d6342c65302edcfe86b3e4e1540869 Mon Sep 17 00:00:00 2001 From: Jaron Bradley Date: Thu, 7 Mar 2024 10:20:21 -0500 Subject: [PATCH] Fixed bug within parser in launchdXPC --- Src/launchdXPC/launchdXPC.m | 4 ++-- Src/main.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/launchdXPC/launchdXPC.m b/Src/launchdXPC/launchdXPC.m index dac978e..e46f09d 100644 --- a/Src/launchdXPC/launchdXPC.m +++ b/Src/launchdXPC/launchdXPC.m @@ -1,5 +1,5 @@ // -// launchdXPC.c +// launchdXPC.m // Created by Patrick Wardle // Ported from code by Jonathan Levin // @@ -238,7 +238,7 @@ int getSubmittedPid(int pid) { //end key line? (line: "}") // remove dictionary, as it's no longer needed - if(YES == [obj hasSuffix:@"}"]) + if(YES == [obj isEqualToString:@"}"]) { //remove [dictionaries removeLastObject]; diff --git a/Src/main.swift b/Src/main.swift index f94ef5e..36f2e42 100644 --- a/Src/main.swift +++ b/Src/main.swift @@ -8,7 +8,7 @@ import Foundation -let version = 0.6 +let version = 0.7 // Go through command line arguments and set accordingly let argManager = ArgManager(suppliedArgs:CommandLine.arguments)