]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more path bs
authorBrian West <brian@freeswitch.org>
Wed, 31 Oct 2007 20:04:11 +0000 (20:04 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 31 Oct 2007 20:04:11 +0000 (20:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6107 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_conference/mod_conference.c

index 8a201302736fe0f0861a5515346f26832c0f6cfc..5dfa511a783b2271d470d127949fe3a311ed2023 100644 (file)
@@ -2027,7 +2027,7 @@ static switch_status_t conference_play_file(conference_obj_t * conference, char
 
        if (!switch_is_file_path(file)) {
                if (conference->sound_prefix) {
-                       if (!(dfile = switch_mprintf("%s/%s", conference->sound_prefix, file))) {
+                       if (!(dfile = switch_mprintf("%s%s%s", conference->sound_prefix, SWITCH_PATH_SEPARATOR, file))) {
                                goto done;
                        }
                        file = dfile;
@@ -2129,7 +2129,7 @@ static switch_status_t conference_member_play_file(conference_member_t * member,
 
                if (!switch_is_file_path(file)) {
                        if (member->conference->sound_prefix) {
-                               if (!(dfile = switch_mprintf("%s/%s", member->conference->sound_prefix, file))) {
+                               if (!(dfile = switch_mprintf("%s%s%s", member->conference->sound_prefix, SWITCH_PATH_SEPARATOR, file))) {
                                        goto done;
                                }
                                file = dfile;
@@ -3814,7 +3814,7 @@ static switch_status_t conference_local_play_file(conference_obj_t * conference,
                        
 
                if (conference->sound_prefix) {
-                       if (!(dpath = switch_mprintf("%s/%s", conference->sound_prefix, path))) {
+                       if (!(dpath = switch_mprintf("%s%s%s", conference->sound_prefix, SWITCH_PATH_SEPARATOR, path))) {
                                status = SWITCH_STATUS_MEMERR;
                                goto done;
                        }
@@ -4276,7 +4276,7 @@ SWITCH_STANDARD_APP(conference_function)
                char *dfile = NULL;
 
                if (conference->sound_prefix) {
-                       dfile = switch_mprintf("%s/%s", conference->sound_prefix, conference->kicked_sound);
+                       dfile = switch_mprintf("%s%s%s", conference->sound_prefix, SWITCH_PATH_SEPARATOR,  conference->kicked_sound);
                        assert(dfile);
                        toplay = dfile;
                } else {