aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-23 20:19:12 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-23 20:19:12 +0000
commit8ab8cc4d260c0ab4c04308ee4ce71ea5d436f0cd (patch)
tree06c6021af66866d5c79a9ae6256c439b7401a474 /say.c
parente75fae58e9c14ad42e5d2e7a537a8315bd60dd91 (diff)
datetime patches from Tilghman (bug #1905)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3289 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rwxr-xr-xsay.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/say.c b/say.c
index c527d9afe..cd4cb877b 100755
--- a/say.c
+++ b/say.c
@@ -1836,8 +1836,7 @@ int ast_say_date_with_format_en(struct ast_channel *chan, time_t time, char *int
for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':
@@ -2118,8 +2117,7 @@ int ast_say_date_with_format_de(struct ast_channel *chan, time_t time, char *int
for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':
@@ -2584,8 +2582,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t time, char *int
for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':
@@ -3012,8 +3009,7 @@ int ast_say_date_with_format_tw(struct ast_channel *chan, time_t time, char *int
for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':