[Asterisk-cvs] asterisk/db1-ast/hash ndbm.c,1.1,1.2
markster at lists.digium.com
markster at lists.digium.com
Wed Jul 14 10:11:30 CDT 2004
- Previous message: [Asterisk-cvs] asterisk/cdr cdr_csv.c,1.8,1.9 cdr_odbc.c,1.14,1.15 cdr_pgsql.c,1.8,1.9 cdr_sqlite.c,1.1,1.2
- Next message: [Asterisk-cvs] asterisk/editline common.c,1.1,1.2 hist.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/db1-ast/hash
In directory mongoose.digium.com:/tmp/cvs-serv24705/db1-ast/hash
Modified Files:
ndbm.c
Log Message:
Merge remaining audit patch (save dlfcn.c)
Index: ndbm.c
===================================================================
RCS file: /usr/cvsroot/asterisk/db1-ast/hash/ndbm.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ndbm.c 4 Jan 2003 18:49:21 -0000 1.1
+++ ndbm.c 14 Jul 2004 13:57:15 -0000 1.2
@@ -79,8 +79,8 @@
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);
- Previous message: [Asterisk-cvs] asterisk/cdr cdr_csv.c,1.8,1.9 cdr_odbc.c,1.14,1.15 cdr_pgsql.c,1.8,1.9 cdr_sqlite.c,1.1,1.2
- Next message: [Asterisk-cvs] asterisk/editline common.c,1.1,1.2 hist.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list