aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_followme.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-13 20:27:24 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-13 20:27:24 +0000
commit1180a69808bffeaa017dd3b1e91d9475caf903ec (patch)
tree394c19e3b4d5b9d1474d1f9d58a53db97bec038c /apps/app_followme.c
parent8cfa64b3ed797f610a1472617e3d313e5cb95ad7 (diff)
Merged revisions 108472 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r108472 | russell | 2008-03-13 15:26:59 -0500 (Thu, 13 Mar 2008) | 12 lines Merged revisions 108469 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r108469 | russell | 2008-03-13 15:26:28 -0500 (Thu, 13 Mar 2008) | 4 lines Fix a couple uses of sprintf. The second one could actually cause an overflow of a stack buffer. It's not a security issue though, it only depends on your configuration. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@108474 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r--apps/app_followme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c
index c52a702f7..4985f7726 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -782,9 +782,9 @@ static void findmeexec(struct fm_args *tpargs)
}
if (!strcmp(tpargs->context, ""))
- sprintf(dialarg, "%s", number);
+ snprintf(dialarg, sizeof(dialarg), "%s", number);
else
- sprintf(dialarg, "%s@%s", number, tpargs->context);
+ snprintf(dialarg, sizeof(dialarg), "%s@%s", number, tpargs->context);
tmpuser = ast_calloc(1, sizeof(*tmpuser));
if (!tmpuser) {