src/filesystem/beos/SDL_sysfilesystem.cc
changeset 7883 62f562a475e1
parent 7676 013483acb374
     1.1 --- a/src/filesystem/beos/SDL_sysfilesystem.cc	Tue Oct 22 21:54:52 2013 -0700
     1.2 +++ b/src/filesystem/beos/SDL_sysfilesystem.cc	Wed Oct 23 00:58:20 2013 -0400
     1.3 @@ -76,12 +76,12 @@
     1.4      // !!! FIXME: is there a better way to do this?
     1.5      const char *home = SDL_getenv("HOME");
     1.6      const char *append = "config/settings/";
     1.7 -    const size_t len = SDL_strlen(home) + SDL_strlen(append) + SDL_strlen(app) + 2;
     1.8 +    const size_t len = SDL_strlen(home) + SDL_strlen(append) + SDL_strlen(org) + SDL_strlen(app) + 3;
     1.9      char *retval = (char *) SDL_malloc(len);
    1.10      if (!retval) {
    1.11          SDL_OutOfMemory();
    1.12      } else {
    1.13 -        SDL_snprintf(retval, len, "%s%s%s/", home, append, app);
    1.14 +        SDL_snprintf(retval, len, "%s%s%s/%s/", home, append, org, app);
    1.15          create_directory(retval, 0700);  // BeOS api: creates missing dirs
    1.16      }
    1.17