aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_playback.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-29 05:14:52 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-29 05:14:52 +0000
commit688dc2194c8637a4694a7087a25f2ff3b81d541e (patch)
tree45576bfa20f7d85653d030d3cb4c965f394dcd8c /apps/app_playback.c
parent602f285e57f21eca23735c213f19233981c520c5 (diff)
remove an explicit constant;
add a comment on the need to sort patterns in the standard way. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30700 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_playback.c')
-rw-r--r--apps/app_playback.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_playback.c b/apps/app_playback.c
index 486b8b362..6ad3e5dd5 100644
--- a/apps/app_playback.c
+++ b/apps/app_playback.c
@@ -223,7 +223,7 @@ static int do_say(say_args_t *a, const char *s, const char *options, int depth)
}
/* prefix:fmt:data */
for (p = fmt; p < data && ret <= 0; p++) {
- char fn2[128];
+ char fn2[sizeof(fn)];
if (*p == ' ' || *p == '\t') /* skip blanks */
continue;
if (*p == '\'') {/* file name - we trim them */
@@ -458,6 +458,10 @@ static int reload(void *mod)
ast_log(LOG_NOTICE, "Reloading say.conf\n");
}
say_cfg = ast_config_load("say.conf");
+ /*
+ * XXX here we should sort rules according to the same order
+ * we have in pbx.c so we have the same matching behaviour.
+ */
return 0;
}