From ab39342b0fb4ca0d08ab947c4287d243adb4c80e Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Tue, 6 Oct 2015 14:00:42 -0700 Subject: [PATCH] Fixes #166 - Segfault when passed a non-existent bundle #166 --- src/ios-deploy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios-deploy.c b/src/ios-deploy.c index 546991f..44d5369 100644 --- a/src/ios-deploy.c +++ b/src/ios-deploy.c @@ -218,7 +218,7 @@ void on_sys_error(NSString* format, ...) { NSString* str = [[[NSString alloc] initWithFormat:format arguments:valist] autorelease]; va_end(valist); - on_error(@"%@ : %@", str, errstr); + on_error(@"%@ : %@", str, [NSString stringWithUTF8String:errstr]); } void NSLogOut(NSString* format, ...) { @@ -1929,7 +1929,7 @@ int main(int argc, char *argv[]) { if (app_path) { if (access(app_path, F_OK) != 0) { - on_sys_error(@"Can't access app path '%@'", app_path); + on_sys_error(@"Can't access app path '%@'", [NSString stringWithUTF8String:app_path]); } }