From: Anthony Minessale Date: Thu, 12 Jan 2012 03:31:04 +0000 (-0600) Subject: FS-3808 --resove We audited for this, must have overlooked this one, thanks. X-Git-Tag: v1.2-rc1~19^2~1^2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fdbc4860223f9fc7748e116f19603a8137541f;p=thirdparty%2Ffreeswitch.git FS-3808 --resove We audited for this, must have overlooked this one, thanks. --- diff --git a/src/switch_utils.c b/src/switch_utils.c index 3374011f57..4d796196da 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -627,7 +627,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to, switch_safe_free(dupfile); } - switch_snprintf(filename, 80, "%smail.%d%04x", SWITCH_GLOBAL_dirs.temp_dir, (int) switch_epoch_time_now(NULL), rand() & 0xffff); + switch_snprintf(filename, 80, "%s%smail.%d%04x", SWITCH_GLOBAL_dirs.temp_dir, SWITCH_PATH_SEPARATOR, (int) switch_epoch_time_now(NULL), rand() & 0xffff); if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644))) { if (file) {