aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-05 16:08:44 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-05 16:08:44 +0000
commitad9520e6b0bee1ace5d48ed81659581d63e97d10 (patch)
treebb7943dee10539301eeb33a6cbd4559259dfd69c /pbx.c
parentbefb1786e7743c4440c6afb225cad7a66a94a78c (diff)
don't try to copy NULL appdata (bug #4422)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5848 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 10d8dc0a6..f7f1a0205 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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)