Browse Source

Correct get_jack_server_dir

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1679 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.68
sletz 17 years ago
parent
commit
63f5ddc3f9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      common/JackServerGlobals.cpp

+ 4
- 4
common/JackServerGlobals.cpp View File

@@ -65,20 +65,20 @@ static char* jack_user_dir(void)

/* returns the name of the per-server subdirectory of jack_user_dir() */

static char* get_jack_server_dir(const char* toto)
static char* get_jack_server_dir(const char* server_name)
{
static char server_dir[PATH_MAX] = "";

// format the path name on the first call
if (server_dir[0] == '\0') {
snprintf(server_dir, sizeof (server_dir), "%s/%s", jack_user_dir(), server_name);
snprintf(server_dir, sizeof(server_dir), "%s/%s", jack_user_dir(), server_name);
}

return server_dir;
}

static void
jack_cleanup_files(const char *server_name)
jack_cleanup_files(const char* server_name)
{
DIR *dir;
struct dirent *dirent;
@@ -340,7 +340,7 @@ bool JackServerGlobals::Init()
goto error;
}

driver_args = (char**)malloc(sizeof(char *) * driver_nargs);
driver_args = (char**)malloc(sizeof(char*) * driver_nargs);
driver_args[0] = driver_name;

for (i = 1; i < driver_nargs; i++) {


Loading…
Cancel
Save