Use snprintf in __ast_request_and_dial instead of sprintf

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich 2004-06-29 19:29:03 +00:00
parent 4b5f53d6a0
commit 074f8d9378
1 changed files with 1 additions and 1 deletions

View File

@ -1796,7 +1796,7 @@ struct ast_channel *__ast_request_and_dial(char *type, int format, void *data, i
}
if (chan->cdr) {
char tmp[256];
sprintf(tmp, "%s/%s",type,(char *)data);
snprintf(tmp, 256, "%s/%s", type, (char *)data);
ast_cdr_setapp(chan->cdr,"Dial",tmp);
ast_cdr_update(chan);
ast_cdr_start(chan->cdr);