Fixed crash in upload due to NSLogOut changes

This commit is contained in:
Shazron Abdullah 2015-05-18 17:48:16 -07:00
parent 84aeaad03b
commit 3ba7403a39

View File

@ -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);