src/filesystem/cocoa/SDL_sysfilesystem.m
changeset 7891 b34f5e226458
parent 7883 62f562a475e1
child 8093 b43765095a6f
equal deleted inserted replaced
7890:c031abe0b287 7891:b34f5e226458
    75 
    75 
    76     if ([array count] > 0) {  /* we only want the first item in the list. */
    76     if ([array count] > 0) {  /* we only want the first item in the list. */
    77         NSString *str = [array objectAtIndex:0];
    77         NSString *str = [array objectAtIndex:0];
    78         const char *base = [str fileSystemRepresentation];
    78         const char *base = [str fileSystemRepresentation];
    79         if (base) {
    79         if (base) {
    80             const size_t len = SDL_strlen(base) + SDL_strlen(app) + 4;
    80             const size_t len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4;
    81             retval = (char *) SDL_malloc(len);
    81             retval = (char *) SDL_malloc(len);
    82             if (retval == NULL) {
    82             if (retval == NULL) {
    83                 SDL_OutOfMemory();
    83                 SDL_OutOfMemory();
    84             } else {
    84             } else {
    85                 char *ptr;
    85                 char *ptr;