From: Russell Bryant Date: Tue, 6 Jun 2006 20:47:46 +0000 (+0000) Subject: use sizeof to determine the size of a buffer X-Git-Tag: 1.4.0-beta1~1017 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6947fdbf6263eb4b25e4683e14232efdd8112ea8;p=thirdparty%2Fasterisk.git use sizeof to determine the size of a buffer git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32702 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_followme.c b/apps/app_followme.c index bd14b2c8f1..1172b8dd7c 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);