Index: db1-ast/hash/ndbm.c =================================================================== RCS file: /usr/cvsroot/asterisk/db1-ast/hash/ndbm.c,v retrieving revision 1.1 diff -u -p -r1.1 ndbm.c --- db1-ast/hash/ndbm.c 4 Jan 2003 18:49:21 -0000 1.1 +++ db1-ast/hash/ndbm.c 14 Jul 2004 07:54:17 -0000 @@ -79,8 +79,8 @@ dbm_open(file, flags, mode) info.cachesize = 0; info.hash = NULL; info.lorder = 0; - (void)strcpy(path, file); - (void)strcat(path, DBM_SUFFIX); + (void)strncpy(path, file, len - 1); + (void)strncat(path, DBM_SUFFIX, len - strlen(path) - 1); db = (DBM *)__hash_open(path, flags, mode, &info, 0); #ifndef __GNUC__ free(path);