aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_txtcidname.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-14 07:34:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-14 07:34:34 +0000
commit4e18ef688947854313b99f35aa30c0e7d8ae29cd (patch)
tree54b0d7240765bc43ef378f171a536e6bc7d206d9 /apps/app_txtcidname.c
parent59d780973e0c1aab681be9dcba1baa2706caf92f (diff)
Merge rgagnon's pedantic string changes (apps n-z) (bug #2038)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3429 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_txtcidname.c')
-rwxr-xr-xapps/app_txtcidname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_txtcidname.c b/apps/app_txtcidname.c
index a727e187c..418f15801 100755
--- a/apps/app_txtcidname.c
+++ b/apps/app_txtcidname.c
@@ -40,7 +40,7 @@ static char *descrip =
#define ENUM_CONFIG "enum.conf"
-static char h323driver[80];
+static char h323driver[80] = "";
#define H323DRIVERDEFAULT "H323"
STANDARD_LOCAL_USER;
@@ -90,9 +90,9 @@ static int load_config(void)
cfg = ast_load(ENUM_CONFIG);
if (cfg) {
if (!(s=ast_variable_retrieve(cfg, "general", "h323driver"))) {
- strcpy(h323driver, H323DRIVERDEFAULT);
+ strncpy(h323driver, H323DRIVERDEFAULT, sizeof(h323driver) - 1);
} else {
- strcpy(h323driver, s);
+ strncpy(h323driver, s, sizeof(h323driver) - 1);
}
ast_destroy(cfg);
return 0;