From: Russell Bryant Date: Tue, 6 Jun 2006 20:45:26 +0000 (+0000) Subject: use sizeof to get the size of a buffer X-Git-Tag: 1.4.0-beta1~1018 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bd42310a241c9d553c4f9e008f21e0d37c71662;p=thirdparty%2Fasterisk.git use sizeof to get the size of a buffer git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32701 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_followme.c b/apps/app_followme.c index 9eb4ae2666..bd14b2c8f1 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -438,7 +438,7 @@ static void clear_caller(struct findme_user *tmpuser) } if (outbound->cdr) { char tmp[256]; - snprintf(tmp, 256, "%s/%s", "Local", tmpuser->dialarg); + snprintf(tmp, sizeof(tmp), "%s/%s", "Local", tmpuser->dialarg); ast_cdr_setapp(outbound->cdr,"FollowMe",tmp); ast_cdr_update(outbound); ast_cdr_start(outbound->cdr);