aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_followme.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 20:47:46 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 20:47:46 +0000
commitd74a113b77c9d18fa2ae500ddfb5c1245475904e (patch)
treea5b47d4136f8f9edd7ad02454722e55c58cf43c8 /apps/app_followme.c
parent140fa02b1c3e77f8e21c1a897ec373f2cdddc1cf (diff)
use sizeof to determine the size of a buffer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32702 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 bd14b2c8f..1172b8dd7 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -843,8 +843,8 @@ static void findmeexec(struct fm_args *tpargs)
if (outbound->cdr) {
char tmp[256];
ast_cdr_init(outbound->cdr, outbound);
- snprintf(tmp, 256, "%s/%s", "Local", dialarg);
- ast_cdr_setapp(outbound->cdr,"FollowMe",tmp);
+ snprintf(tmp, sizeof(tmp), "%s/%s", "Local", dialarg);
+ ast_cdr_setapp(outbound->cdr, "FollowMe", tmp);
ast_cdr_update(outbound);
ast_cdr_start(outbound->cdr);
ast_cdr_end(outbound->cdr);