diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-07-19 22:25:00 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-07-19 22:25:00 +0000 |
commit | b78fd0ac89cabd401235d2686584945cf241da62 (patch) | |
tree | 051c18811e52610ed51dbf6a5894c93308de4021 /main/cel.c | |
parent | 86ff5585fd4de538c65bcbdce54cd9ef74b4e784 (diff) |
Fix compiler warnings.
gcc (GCC) 4.2.4 has problems casting away constness.
........
Merged revisions 370275 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 370277 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cel.c')
-rw-r--r-- | main/cel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/main/cel.c b/main/cel.c index 785b791f1..35f78cadf 100644 --- a/main/cel.c +++ b/main/cel.c @@ -505,11 +505,10 @@ struct ast_channel *ast_cel_fabricate_channel_from_event(const struct ast_event return NULL; } - ast_channel_appl_set(tchan, app_data); - ast_channel_data_set(tchan, app_data + strlen(record.application_name) + 1); + ast_channel_appl_set(tchan, strcpy(app_data, record.application_name)); + ast_channel_data_set(tchan, strcpy(app_data + strlen(record.application_name) + 1, + record.application_data)); - strcpy((char *) ast_channel_appl(tchan), record.application_name); - strcpy((char *) ast_channel_data(tchan), record.application_data); datastore->data = app_data; ast_channel_datastore_add(tchan, datastore); |