From 3ba7403a39438eed6515f9fd4a9e2e91b0df6846 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Mon, 18 May 2015 17:48:16 -0700 Subject: [PATCH] Fixed crash in upload due to NSLogOut changes --- ios-deploy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios-deploy.c b/ios-deploy.c index 4da5b7f..0edc7a1 100644 --- a/ios-deploy.c +++ b/ios-deploy.c @@ -1478,10 +1478,10 @@ void upload_file(AMDeviceRef device) { int ret = AFCFileRefOpen(afc_conn_p, target_filename, 3, &file_ref); if (ret == 0x000a) { - on_error(@"Cannot write to %@. Permission error.", target_filename); + on_error(@"Cannot write to %@. Permission error.", [NSString stringWithUTF8String:target_filename]); } if (ret == 0x0009) { - on_error(@"Target %@ is a directory.", target_filename); + on_error(@"Target %@ is a directory.", [NSString stringWithUTF8String:target_filename]); } assert(ret == 0); assert(AFCFileRefWrite(afc_conn_p, file_ref, file_content, file_size) == 0);