fix path bs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6105 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-10-31 19:59:40 +00:00
parent edf08043ff
commit 049d952d4e
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ SWITCH_BEGIN_EXTERN_C
codec->implementation->samples_per_second, \ codec->implementation->samples_per_second, \
codec->implementation->microseconds_per_frame / 1000) codec->implementation->microseconds_per_frame / 1000)
#ifdef WIN32 #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 #else
#define switch_is_file_path(file) ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR)) #define switch_is_file_path(file) ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR))
#endif #endif

View File

@ -680,7 +680,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
uint32_t len; uint32_t len;
len = (uint32_t) strlen(file) + (uint32_t) strlen(prefix) + 10; len = (uint32_t) strlen(file) + (uint32_t) strlen(prefix) + 10;
new_file = switch_core_session_alloc(session, len); 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; file = new_file;
} }