diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-29 15:38:02 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-29 15:38:02 +0000 |
commit | 5ec52e802ca50b91024828cc7bf05484eedee724 (patch) | |
tree | 411d8c3fc84d243729062e20aa6bf8ccfb8b0512 /pbx.c | |
parent | 37312e1c31e5b5037a3024dd42dbf9c2b0148ef3 (diff) |
Minor fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1235 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1115,8 +1115,10 @@ static int pbx_extension_helper(struct ast_channel *c, char *context, char *exte app = pbx_findapp(e->app); pthread_mutex_unlock(&conlock); if (app) { - strncpy(c->context, context, sizeof(c->context-1)); - strncpy(c->exten, exten, sizeof(c->exten)-1); + if (c->context != context) + strncpy(c->context, context, sizeof(c->context-1)); + if (c->exten != exten) + strncpy(c->exten, exten, sizeof(c->exten)-1); c->priority = priority; pbx_substitute_variables(passdata, sizeof(passdata), c, e); if (option_debug) |