]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove trailing backlash from windows temp paths - mostly cosmetic
authorJeff Lenk <jeff@jefflenk.com>
Tue, 25 Sep 2012 03:35:08 +0000 (22:35 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 25 Sep 2012 03:36:15 +0000 (22:36 -0500)
src/switch_core.c

index 7bd11609d32b4d1fead7e590fd9396d3110b6542..20dfd9b41149092ba5cede5b496b1aa0e504317e 100644 (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");