aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_txtcidname.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 23:12:25 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 23:12:25 +0000
commitd99da55a16b32f4463c40d504fa2ffee4ba8966d (patch)
treea725ca8f608e13f6dda4ebce3d55d8abafb9317a /apps/app_txtcidname.c
parent9690f518f5b644b670f4e8e047083535c106dafa (diff)
more ast_copy_string conversions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6074 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_txtcidname.c')
-rwxr-xr-xapps/app_txtcidname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_txtcidname.c b/apps/app_txtcidname.c
index 0a2e430c2..d018cbd92 100755
--- a/apps/app_txtcidname.c
+++ b/apps/app_txtcidname.c
@@ -95,9 +95,9 @@ static int load_config(void)
cfg = ast_config_load(ENUM_CONFIG);
if (cfg) {
if (!(s=ast_variable_retrieve(cfg, "general", "h323driver"))) {
- strncpy(h323driver, H323DRIVERDEFAULT, sizeof(h323driver) - 1);
+ ast_copy_string(h323driver, H323DRIVERDEFAULT, sizeof(h323driver));
} else {
- strncpy(h323driver, s, sizeof(h323driver) - 1);
+ ast_copy_string(h323driver, s, sizeof(h323driver));
}
ast_config_destroy(cfg);
return 0;