Changeset 12684 for trunk/libtransmission/platform.c
- Timestamp:
- Aug 15, 2011, 12:10:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/platform.c
r12478 r12684 572 572 CFStringRef appRef = CFURLCopyFileSystemPath( appURL, 573 573 kCFURLPOSIXPathStyle ); 574 CFIndex appLength = CFStringGetMaximumSizeForEncoding( CFStringGetLength(appRef), 575 CFStringGetFastestEncoding( appRef )); 576 577 char * appString = tr_malloc( appLength + 1 ); 578 bool success = CFStringGetCString( appRef, 579 appString, 580 appLength + 1, 581 CFStringGetFastestEncoding( appRef )); 574 const CFIndex appStringLength = CFStringGetMaximumSizeOfFileSystemRepresentation(appRef); 575 576 char * appString = tr_malloc( appStringLength ); 577 const bool success = CFStringGetFileSystemRepresentation( appRef, appString, appStringLength ); 582 578 assert( success ); 583 579
Note: See TracChangeset
for help on using the changeset viewer.