remove trailing backlash from windows temp paths - mostly cosmetic

This commit is contained in:
Jeff Lenk 2012-09-24 22:35:08 -05:00
parent 614ba049b1
commit f997cc25d1
1 changed files with 1 additions and 0 deletions

View File

@ -661,6 +661,7 @@ SWITCH_DECLARE(void) switch_core_set_globals(void)
#else
#ifdef WIN32
GetTempPath(dwBufSize, lpPathBuffer);
lpPathBuffer[strlen(lpPathBuffer)-1] = 0;
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", lpPathBuffer);
#else
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", "/tmp");