Skip to content
Snippets Groups Projects
Commit 6947fdbf authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent 1bd42310
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment