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

src/mod/formats/mod_local_stream/mod_local_stream.c

index f880aa4c936b04d391811eb3b7c2898cf2284538..934f00777ada9b11ba13d5fb860f8f4d77c15214 100644 (file)
@@ -101,7 +101,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
                        switch_size_t olen;
                        uint8_t *abuf[SWITCH_RECOMMENDED_BUFFER_SIZE] =  {0};
 
-                       snprintf(path_buf, sizeof(path_buf), "%s/%s", source->location, fname);
+                       snprintf(path_buf, sizeof(path_buf), "%s%s%s", source->location, SWITCH_PATH_SEPARATOR, fname);
                        fname = path_buf;
                        if (switch_core_file_open(&fh,
                                                                          (char *)fname,