From becb8b6277f750d19adf92ff002950d1d88194b3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 4 Jan 2012 17:16:29 -0600 Subject: [PATCH] fix bug in xml_curl that was being masked by versions < 679da2f0f609c7a893c62929481cb8feaafef7b5 --- src/mod/asr_tts/mod_tts_commandline/mod_tts_commandline.c | 2 +- src/mod/xml_int/mod_xml_curl/mod_xml_curl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/asr_tts/mod_tts_commandline/mod_tts_commandline.c b/src/mod/asr_tts/mod_tts_commandline/mod_tts_commandline.c index 0f3bc41f14..80be1d9686 100644 --- a/src/mod/asr_tts/mod_tts_commandline/mod_tts_commandline.c +++ b/src/mod/asr_tts/mod_tts_commandline/mod_tts_commandline.c @@ -105,7 +105,7 @@ static switch_status_t tts_commandline_speech_open(switch_speech_handle_t *sh, c /* Construct temporary file name with a new UUID */ switch_uuid_get(&uuid); switch_uuid_format(uuid_str, &uuid); - switch_snprintf(outfile, sizeof(outfile), "%s%s.tmp.wav", SWITCH_GLOBAL_dirs.temp_dir, uuid_str); + switch_snprintf(outfile, sizeof(outfile), "%s%s%s.tmp.wav", SWITCH_GLOBAL_dirs.temp_dir, SWITCH_PATH_SEPARATOR, uuid_str); info->file = switch_core_strdup(sh->memory_pool, outfile); info->fh = (switch_file_handle_t *) switch_core_alloc(sh->memory_pool, sizeof(switch_file_handle_t)); diff --git a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c index e5fa3ff032..1a01c7f4ff 100644 --- a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c +++ b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c @@ -205,7 +205,7 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con switch_uuid_get(&uuid); switch_uuid_format(uuid_str, &uuid); - switch_snprintf(filename, sizeof(filename), "%s%s.tmp.xml", SWITCH_GLOBAL_dirs.temp_dir, uuid_str); + switch_snprintf(filename, sizeof(filename), "%s%s%s.tmp.xml", SWITCH_GLOBAL_dirs.temp_dir, SWITCH_PATH_SEPARATOR, uuid_str); curl_handle = switch_curl_easy_init(); headers = switch_curl_slist_append(headers, "Content-Type: application/x-www-form-urlencoded");