Index: apps/app_enumlookup.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_enumlookup.c,v retrieving revision 1.9 diff -u -p -r1.9 app_enumlookup.c --- apps/app_enumlookup.c 22 Jun 2004 19:32:52 -0000 1.9 +++ apps/app_enumlookup.c 13 Jul 2004 20:04:20 -0000 @@ -47,7 +47,7 @@ static char *descrip = #define ENUM_CONFIG "enum.conf" -static char h323driver[80]; +static char h323driver[80] = ""; #define H323DRIVERDEFAULT "H323" STANDARD_LOCAL_USER; @@ -148,9 +148,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;