src/filesystem/beos/SDL_sysfilesystem.cc
changeset 7676 013483acb374
parent 7673 e3d59fb413ad
child 7883 62f562a475e1
equal deleted inserted replaced
7675:230c1a5e1af5 7676:013483acb374
    61     if (!retval) {
    61     if (!retval) {
    62         SDL_OutOfMemory();
    62         SDL_OutOfMemory();
    63         return NULL;
    63         return NULL;
    64     }
    64     }
    65 
    65 
    66     strcpy(retval, str);
    66     SDL_memcpy(retval, str, len);
    67     retval[len] = '/';
    67     retval[len] = '/';
    68     retval[len+1] = '\0';
    68     retval[len+1] = '\0';
    69     return retval;
    69     return retval;
    70 }
    70 }
    71 
    71