diff options
author | Mark Spencer <markster@digium.com> | 2004-07-14 13:57:15 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-07-14 13:57:15 +0000 |
commit | 044ad2e2e7a74049ed5c2215d00624be9f045e60 (patch) | |
tree | 30a1118273807f5c6ba0e3ca611ab0c6a160fa3b /db1-ast/hash | |
parent | 9cd917c42a6cf0661861a7e19d4685b2449df43f (diff) |
Merge remaining audit patch (save dlfcn.c)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'db1-ast/hash')
-rwxr-xr-x | db1-ast/hash/ndbm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db1-ast/hash/ndbm.c b/db1-ast/hash/ndbm.c index 83aa766c3..20840e976 100755 --- a/db1-ast/hash/ndbm.c +++ b/db1-ast/hash/ndbm.c @@ -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); |