From 049d952d4e8930aa8060e0679b5d2d7a62ddb8eb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 31 Oct 2007 19:59:40 +0000 Subject: [PATCH] fix path bs git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6105 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_utils.h | 2 +- src/switch_ivr_play_say.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index a9c9c41d81..d7015fef30 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -50,7 +50,7 @@ SWITCH_BEGIN_EXTERN_C 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 diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index c0d33bc249..f90ee6cd58 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -680,7 +680,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess 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; }