Changeset 690

Show
Ignore:
Timestamp:
11/02/08 16:58:11 (2 months ago)
Author:
gbooker
Message:

Switched to a better method of getting a c string; one that doesn't return NULL and crash

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/CoreData/SapphireFrappliance/MetaDataImporting/SapphireTVShowImporter.m

    r656 r690  
    457457        int secondEp = -1; 
    458458        regmatch_t matches[3]; 
    459         const char *theFileName = [fileName cStringUsingEncoding:NSASCIIStringEncoding]; 
     459        const char *theFileName = [fileName fileSystemRepresentation]; 
    460460        NSString *scanString = nil; 
    461461        if(!regexec(&letterMarking, theFileName, 3, matches, 0))