[Freeswitch-svn] [commit] r4305 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Fri Feb 16 18:37:15 EST 2007
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/";
More information about the Freeswitch-svn
mailing list