Author: mikej Date: Fri Feb 16 18:37:14 2007 New Revision: 4305 Modified: freeswitch/trunk/src/switch_core.c Log: fix copy/paste error on setting SWITCH_GLOBAL_dirs.temp_dir on windows. Modified: freeswitch/trunk/src/switch_core.c ============================================================================== --- freeswitch/trunk/src/switch_core.c (original) +++ freeswitch/trunk/src/switch_core.c Fri Feb 16 18:37:14 2007 @@ -4007,8 +4007,8 @@ #else #ifdef WIN32 GetTempPath(dwBufSize, lpPathBuffer); - if (!SWITCH_GLOBAL_dirs.htdocs_dir && (SWITCH_GLOBAL_dirs.htdocs_dir = (char *) malloc(BUFSIZE))) { - snprintf(SWITCH_GLOBAL_dirs.htdocs_dir, BUFSIZE, "%s", lpPathBuffer); + if (!SWITCH_GLOBAL_dirs.temp_dir && (SWITCH_GLOBAL_dirs.htdocs_dir = (char *) malloc(BUFSIZE))) { + snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", lpPathBuffer); } #else SWITCH_GLOBAL_dirs.temp_dir = "/tmp/";