From: Richard Mudgett Date: Thu, 19 Jul 2012 22:11:48 +0000 (+0000) Subject: Fix compiler warnings. X-Git-Tag: 10.8.0-rc1~3^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8cc8a649792f3a42185bba2a9123f7454d509e8;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@370277 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cel.c b/main/cel.c index e9d05901a5..a5d82a606f 100644 --- a/main/cel.c +++ b/main/cel.c @@ -499,11 +499,10 @@ struct ast_channel *ast_cel_fabricate_channel_from_event(const struct ast_event return NULL; } - tchan->appl = app_data; - tchan->data = app_data + strlen(record.application_name) + 1; + tchan->appl = strcpy(app_data, record.application_name); + tchan->data = strcpy(app_data + strlen(record.application_name) + 1, + record.application_data); - strcpy((char *) tchan->appl, record.application_name); - strcpy((char *) tchan->data, record.application_data); datastore->data = app_data; ast_channel_datastore_add(tchan, datastore);