mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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
This commit is contained in:
@@ -438,7 +438,7 @@ static void clear_caller(struct findme_user *tmpuser)
|
|||||||
}
|
}
|
||||||
if (outbound->cdr) {
|
if (outbound->cdr) {
|
||||||
char tmp[256];
|
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_setapp(outbound->cdr,"FollowMe",tmp);
|
||||||
ast_cdr_update(outbound);
|
ast_cdr_update(outbound);
|
||||||
ast_cdr_start(outbound->cdr);
|
ast_cdr_start(outbound->cdr);
|
||||||
|
Reference in New Issue
Block a user