diff --git a/src/switch_core.c b/src/switch_core.c index 4682d3c002..1cc0dd0569 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -670,6 +670,9 @@ SWITCH_DECLARE(void) switch_core_set_globals(void) #ifdef WIN32 GetTempPath(dwBufSize, lpPathBuffer); 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); #else switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", "/tmp");