Adium

Changeset 25018

Show
Ignore:
Timestamp:
08/28/2008 02:44:31 PM (4 months ago)
Author:
evands
Message:

Merged [25016]: Let's try using -[NSURL path] rather than CFURLCopyFileSystemPath(). Perhaps it doesn't crash on long paths.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/adium-1.2/Source/AIMDLogViewerWindowController.m

    r18667 r25018  
    9393                         * Cocoa applications... 
    9494                         */ 
    95                         CFStringRef             logPath = CFURLCopyFileSystemPath(url, kCFURLPOSIXPathStyle); 
    96                         NSArray                 *pathComponents = [(NSString *)logPath pathComponents]; 
     95//                      CFStringRef             logPath = CFURLCopyFileSystemPath(url, kCFURLPOSIXPathStyle); 
     96                        NSString *logPath = [(NSURL *)url path]; 
     97                        NSArray  *pathComponents = [(NSString *)logPath pathComponents]; 
    9798                         
    9899                        //Don't test for the date now; we'll test once we've found the AIChatLog if we make it that far 
     
    134135                        } 
    135136                         
    136                         if (logPath) CFRelease(logPath); 
     137                        //if (logPath) CFRelease(logPath); 
    137138                        if (url) CFRelease(url); 
    138139                        if (document) CFRelease(document);