From: Jeff Lenk Date: Tue, 25 Sep 2012 03:35:08 +0000 (-0500) Subject: remove trailing backlash from windows temp paths - mostly cosmetic X-Git-Tag: v1.3.0~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f997cc25d1bb2d370f119213acb2f710fed17281;p=thirdparty%2Ffreeswitch.git remove trailing backlash from windows temp paths - mostly cosmetic --- diff --git a/src/switch_core.c b/src/switch_core.c index 7bd11609d3..20dfd9b411 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -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");