src/filesystem/unix/SDL_sysfilesystem.c
changeset 7883 62f562a475e1
parent 7719 31b5f9ff36ca
child 8093 b43765095a6f
     1.1 --- a/src/filesystem/unix/SDL_sysfilesystem.c	Tue Oct 22 21:54:52 2013 -0700
     1.2 +++ b/src/filesystem/unix/SDL_sysfilesystem.c	Wed Oct 23 00:58:20 2013 -0400
     1.3 @@ -178,14 +178,14 @@
     1.4      if (envr[len - 1] == '/')
     1.5          append += 1;
     1.6  
     1.7 -    len += SDL_strlen(append) + SDL_strlen(app) + 2;
     1.8 +    len += SDL_strlen(append) + SDL_strlen(org) + SDL_strlen(app) + 3;
     1.9      retval = (char *) SDL_malloc(len);
    1.10      if (!retval) {
    1.11          SDL_OutOfMemory();
    1.12          return NULL;
    1.13      }
    1.14  
    1.15 -    SDL_snprintf(retval, len, "%s%s%s/", envr, append, app);
    1.16 +    SDL_snprintf(retval, len, "%s%s%s/%s/", envr, append, org, app);
    1.17  
    1.18      for (ptr = retval+1; *ptr; ptr++) {
    1.19          if (*ptr == '/') {