mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 18:13:27 +00:00
FS-4099 FS-4847
This commit is contained in:
parent
7ead440fa0
commit
93b5f7fdfd
@ -670,6 +670,9 @@ SWITCH_DECLARE(void) switch_core_set_globals(void)
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
GetTempPath(dwBufSize, lpPathBuffer);
|
GetTempPath(dwBufSize, lpPathBuffer);
|
||||||
lpPathBuffer[strlen(lpPathBuffer)-1] = 0;
|
lpPathBuffer[strlen(lpPathBuffer)-1] = 0;
|
||||||
|
tmp = switch_string_replace(lpPathBuffer, "\\", "/");
|
||||||
|
strcpy(lpPathBuffer, tmp);
|
||||||
|
free(tmp);
|
||||||
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", lpPathBuffer);
|
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", lpPathBuffer);
|
||||||
#else
|
#else
|
||||||
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", "/tmp");
|
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", "/tmp");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user