[Freeswitch-svn] [commit] r6110 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Wed Oct 31 16:37:30 EDT 2007
Author: anthm
Date: Wed Oct 31 16:37:30 2007
New Revision: 6110
Modified:
freeswitch/trunk/src/switch_ivr_play_say.c
Log:
fix path bs
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 16:37:30 2007
@@ -675,25 +675,14 @@
}
if (!strstr(file, SWITCH_URL_SEPARATOR)) {
- if (switch_is_file_path(file)) {
- char *new_file;
- 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%s", prefix, SWITCH_PATH_SEPARATOR, file);
- file = new_file;
+ if (!switch_is_file_path(file)) {
+ file = switch_core_session_sprintf(session, "%s%s%s", prefix, SWITCH_PATH_SEPARATOR, file);
}
-
if ((ext = strrchr(file, '.'))) {
ext++;
} else {
- char *new_file;
- uint32_t len;
ext = read_codec->implementation->iananame;
- len = (uint32_t) strlen(file) + (uint32_t) strlen(ext) + 2;
- new_file = switch_core_session_alloc(session, len);
- snprintf(new_file, len, "%s.%s", file, ext);
- file = new_file;
+ file = switch_core_session_sprintf(session, "%s.%s", file, ext);
asis = 1;
}
}
More information about the Freeswitch-svn
mailing list