aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-13 20:26:28 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-13 20:26:28 +0000
commitafbeb082ab6ee97eea332d4af25c75b02f965489 (patch)
treeb8131f5b9a15fc27b3af490cbb938529e4998697 /apps
parent062f2ca0e539d73f5b3aec652fa0decafebfda2a (diff)
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.4@108469 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 78f5c70cf..d383cf989 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -818,9 +818,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) {