[Freeswitch-svn] [commit] r6105 - in freeswitch/trunk/src: . include
Freeswitch SVN
anthm at freeswitch.org
Wed Oct 31 15:59:40 EDT 2007
Author: anthm
Date: Wed Oct 31 15:59:40 2007
New Revision: 6105
Modified:
freeswitch/trunk/src/include/switch_utils.h
freeswitch/trunk/src/switch_ivr_play_say.c
Log:
fix path bs
Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h (original)
+++ freeswitch/trunk/src/include/switch_utils.h Wed Oct 31 15:59:40 2007
@@ -50,7 +50,7 @@
codec->implementation->samples_per_second, \
codec->implementation->microseconds_per_frame / 1000)
#ifdef WIN32
-#define switch_is_file_path(file) (*(file +1) == ':' || *file == '/' || strstr(file, SWITCH_URL_SEPARATOR))
+#define switch_is_file_path(file) (*file == '\\' || *(file +1) == ':' || *file == '/' || strstr(file, SWITCH_URL_SEPARATOR))
#else
#define switch_is_file_path(file) ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR))
#endif
Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c (original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c Wed Oct 31 15:59:40 2007
@@ -680,7 +680,7 @@
uint32_t len;
len = (uint32_t) strlen(file) + (uint32_t) strlen(prefix) + 10;
new_file = switch_core_session_alloc(session, len);
- snprintf(new_file, len, "%s/%s", prefix, file);
+ snprintf(new_file, len, "%s%s%s", prefix, SWITCH_PATH_SEPARATOR, file);
file = new_file;
}
More information about the Freeswitch-svn
mailing list