diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-05 16:08:44 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-05 16:08:44 +0000 |
commit | b9724219453004520c15735c85c90b626399a5dc (patch) | |
tree | bb7943dee10539301eeb33a6cbd4559259dfd69c /pbx.c | |
parent | 50307c4e80f56c2cc9d3ea3372e0bdef8aeadb8f (diff) |
don't try to copy NULL appdata (bug #4422)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5038,7 +5038,8 @@ int ast_pbx_outgoing_app(const char *type, int format, void *data, int timeout, if (tmp) { memset(tmp, 0, sizeof(struct app_tmp)); strncpy(tmp->app, app, sizeof(tmp->app) - 1); - strncpy(tmp->data, appdata, sizeof(tmp->data) - 1); + if (appdata) + ast_copy_string(tmp->data, appdata, sizeof(tmp->data)); tmp->chan = chan; if (sync > 1) { if (locked_channel) |